Apple Watch Fails to Receive Companion App Message

Hello all,

I have run into a weird situation in my watchOS app with a companion iOS app.

Issue: Watch fails to receive sendMessage string sent from phone while watch is in foreground. This is not consistent and seems to happen randomly under certain conditions.

Order of operations: User Opens phone app & watch app -> user presses "sendMessage" button, func is called -> watch does not receive message while in foreground

Condition explanation: To my knowledge, without a HealthKit workout session active, the apple watch is not available to receive messages (using any internal library transmission type) from its iOS companion app while the watch screen is not in the foreground (i.e. inactive). However, my issue is that sometimes, while the watch IS in the foreground, it does not receive the companion app's message. Additionally, this is not resolved by force quitting both iOS and watchOS apps. The only way I have gotten this issue to go away is by restarting both the phone and the watch. Again, it is not a consistent behavior and seemingly happens randomly. This behavior has been observed across multiple different beta testers on different hardware.

This is only apparent when transmitting from Phone -> Watch. I have not experienced any transmission issues when transmitting Watch -> Phone.

My team and I have speculated that it could be an issue with WCSession.isReachable returning true before we transmit the message but changing to false before the hardware actually transmits. However, this wouldn't explain why the watch would not be available while in the foreground. This is just a preliminary thought.

My goal in posting on here is to see if anyone else has experienced this, or if it's a known bug.

All message protocols have been coded to follow Apple's WCSession documentation as closely as possible.

Hardware specs: Watch Model: A2093 (series 5) WatchOS ver: 10.6.1 Phone: MU693LL/A (15 pro max) iOS ver: 18.3.2 XCode ver: 16.0

Can you reproduce the issue with the following Apple sample?

The sample demonstrates how to use Watch Connectivity. If it reproduces the issue, I'd believe that something was changed on the system side, and suggest that you start with filing a feedback report and share your report ID here.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Apple Watch Fails to Receive Companion App Message
 
 
Q