i'm now develop a watch app that will be running together with iOS companion app. So it is important to know whether the app is running and linked or not.
For now, i can know the state of the watch app through iOS app, but i could not know the state of iOS app from watch app. Example if user kill the iOS app, i cannot detect if the companion app is running or not.
i have tried with following code;
func sessionReachabilityDidChange(_ session: WCSession) {
print("session reachbility did change \(session)")
}
but no luck, this function is not called when i quit the iOS companion app. And i have read through the apple document but no luck. Does anyone know how to do that?
EDITED After i try with WCSessionActivationState. When my watch app is running, but iPhone companion app is not running, but the return WCSessionActivationState is activated. Is it a bugs or something?