I want to send a dictionary from iPhone to Watchkit in watchOS 2.
In watchOS 1 it works fine for me with appgroups but in watchOS 2 I know that we have to use WCSession
but I don't know how to use it.
Please help me find the solution.
I want to send a dictionary from iPhone to Watchkit in watchOS 2.
In watchOS 1 it works fine for me with appgroups but in watchOS 2 I know that we have to use WCSession
but I don't know how to use it.
Please help me find the solution.
This blog post should help you out.
From that post: First, you'll create and activate a WCSession like so:
For transferring a dictionary:
Then, on the receiving end, you'll need to implement
session:didReceiveUserInfo:
(Developer documentation). Note, according to Apple's "watchOS2 Transition Guide,"