For watchOS1 there were several limited, but efficient methods available for sharing data between the watch and the phone - like openParentApp, AppGroups and NSUserDefaults.
With the release of watchOS2 and the WatchConnectivity framework - openParentApp method was deprecated, AppGroups and NSUserDefaults were limited to read-only functionality. Important to note here that WatchConnectivity is supported only by iOS9 devices.
But somehow i see apps on the AppStore claiming to be optimised for watchOS2 while having an iOS8 as deployment target.
Am i missing something? Are there any other methods available for sharing data sufficiently?
Some user may not have Apple Watch and they may using iOS8. To support them, You can set each deployment target version per each build target.
Likes these example targets in a project:
WatchConnectivity framework as optional)In the iOS App Codes, You can check WatchConnectivity availability with below codes:
NSClassFromString(@"WCSession") != nil;
As far as I know, You can also provides watchOS 1 App in sametime, But I did not test it. It can't be tested with simulator and I don't have other apple watch that have watchOS1.
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