Watch: WCSession is NOT reachable

** Facing issue for watch unreachable, I have tried for real device as well simulator**

if let controller = window?.rootViewController as? FlutterViewController {
let channel = FlutterMethodChannel(
name: "watchconnectivity",
binaryMessenger: controller.binaryMessenger)
channel.setMethodCallHandler({ [weak self] (call, result) in
switch call.method {
case "sendToWatch":
guard let watchSession = self?.session else {
print("❌ Watch session not initialized")
result(false)
return
}
guard watchSession.isPaired else {
print("❌ Watch not paired")
result(false)
return
}
guard watchSession.isReachable else {
print("❌")
print("isPaired: \(watchSession.isPaired)")
print("isWatchAppInstalled: \(watchSession.isWatchAppInstalled)")
print("isComplicationEnabled: \(watchSession.isComplicationEnabled)")
result(false)
return
}
guard let arguments = call.arguments as? [String: Any] else {
print("❌ Invalid arguments format")
result(false)
return
}
if watchSession.isWatchAppInstalled {
try? watchSession.updateApplicationContext(["forceLaunch": true])
}
print("📤 Sending message to Watch: \(arguments)")
watchSession.sendMessage(arguments,
replyHandler: { response in
print("✅ Message sent successfully")
result(true)
},
errorHandler: nil
)
default:
result(FlutterMethodNotImplemented)
}
})
}
Answered by DTS Engineer in 831893022

When examining a Watch Connectivity issue, I typically start with checking if the issue occurs in the following Apple sample, which demonstrates how to use Watch Connectivity:

If it does, I'd suggest that you file a feedback report with your steps that reproduce the issue, and share your report ID here. From there, we can check if it is something on the app side or on the system side.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

When examining a Watch Connectivity issue, I typically start with checking if the issue occurs in the following Apple sample, which demonstrates how to use Watch Connectivity:

If it does, I'd suggest that you file a feedback report with your steps that reproduce the issue, and share your report ID here. From there, we can check if it is something on the app side or on the system side.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Watch: WCSession is NOT reachable
 
 
Q