I tried to send data from iPhone app to watch kit extension but fail. And have no idea how to do it.
I tested on simulator and send data via app groups.
Here is my steps:
Add code at watchkit extension to read NSUserDefaults data. ([NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:)
Run watch kit app
What necessary things I miss?
Or I should use another way to do this?
All I want to do is to send data from iPhone to watch every seconds. The data could be string or image.
Thanks
To set communication between iPhone and iWatch I have been putting a file into the shared app group folder and monitor it from the Watch extension. If there is any change in iPhone app it modifies the file and the Watch extension will be notified and can act on it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With