This post should help you.
From this post: first you create and activate WCSession like this:
if (WCSession.isSupported()) { let session = WCSession.defaultSession() session.delegate = self session.activateSession() }
To translate a dictionary:
let applicationDict =
Then on the receiving side you will need to implement session:didReceiveUserInfo: ( Developer Documentation ). Please note, according to Appleβs watchOS2 Transition Guide ,
To start chatting, your Watch app and your iOS app must have an active WCSession object. Typically, each application creates, configures, and activates a session object at startup and stores a link to it in a central location. When you want to send data, you retrieve the session object and call its methods.
source share