[ad_1]
I’m utilizing Apple’s WatchConnectivity framework to develop an iOS app with a companion WatchOS app.
On iOS facet, after I open the app, I must manually activate the WCSession to speak with the Apple Watch like this
if ([WCSession isSupported]) {
self.wcSession = [WCSession defaultSession];
self.wcSession.delegate = self;
[self.wcSession activateSession];
}
After I end all mandatory communications between the iPhone and the Apple Watch, I need to deactivate the WCSession for the reason that activation of WCSession is power consuming. I’ve regarded by means of the WatchConnectivity API however have not discovered a option to deactivate it. I can’t shutdown the connection until I give up the app on the iPhone and reopen it once more.
Is there a option to deactivate the WCSession? Thanks very a lot.
[ad_2]
