I want to notify user from my ios Today extension whether apple watch is connected or disconnected. Perfect flow is "watch disconnected - switch flag on iOS app". It is significant because my watchapp wakes up in background from time to time and sends messages to ios app, and user is interested in getting these messages without bothering to open watchapp in foreground.
According to documentation, there are two options that unfortunately do not help me:
1) reachability
WCSession.default().isReachable
- on iOS side is true only when my watchapp is foreground, so is useless in my case
2) WCSession state changes callbacks
sessionDidBecomeInactive, sessionDidDeactivate, session(activationDidCompleteWith:error:)
- are not called when bluetooth is switch off on iphone, watch or both devices together
As for watchOS3, is there any API to know status of watch<->phone connection, regardless of watchapp<->iosapp connection?