I'm having issues with the WatchConnectivity and potentially Clockkit frameworks.
I'm trying to use transferCurrentComplicationUserInfo in the iOS app to send data to the watch and update the complication.
Inside my extension delegate on the watch I have implemented the delegate method didReceiveUserInfo where I process the data and then call to update the complication.
When I run the iOS app on the simulator things work fine. However, if I run it on actual devices, the transmit from the phone starts, the complication calls requestedUpdateDidBegin(), but the didReceiveUserInfo inside the extension on the watch is never called and hence I have no data for the complication.
Any suggestions? or should I file a bug report?
It sounds like an issue setting up your WCSession object on your apple watch. For a complication, I recommend doing this in the ExtensionDelegate's init method. The reason for this is because applicationDidFinishLaunching only is called when your watch extension (the main watch app) is launched, not when a complication or glance is shown.
override init() {
super.init()
// Setup watch connectivity. We do this here because applicationDidFinishLaunching is only
// called when the watch extension is being called, not when a complciation is being updated
self.session.delegate = self
self.session.activateSession()
}
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