- Get link
- Other Apps
I made a utility for transferring the data between iWatch and iPhone. This is done using the WatchConnectivity framework which is available in watch OS 2 and later.General steps to perform. Although all steps are written in the working sample code.
- Create the WCSession
- Implement the WCSessionDelegate methods. WKInterfaceController will receive the context dictionary in one of the delegate method.
- In the UIViewController, Create the WCSession. When ever you want to share information to watch, then update the ApplicationContext
Full working code is available at https://www.dropbox.com/s/53ddbxhiaomdjt9/MyPWatch.zip?dl=0
Comments
Post a Comment