Can a remote notification sound play on an iPhone paired with an Apple Watch?

The Apple Watch Programming Guide states:

When one of your apps receives local or remote notifications on users' iPhone, iOS decides whether to show the notification on iPhone or Apple Watch.

I can find a discussion about the circumstances where notifications are not delivered to the Apple Watch (for example here ), but I'm really interested with what the behavior is on the iPhone when a remote notification is delivered to the Apple Watch.

We have a custom alert sound contained in our app and specified with a sound property in our APNS notification payload. Custom audio plays on iPhone as expected (even if iPhone is locked) if Apple Watch is not paired with a device. Then the iPhone won't beep. I cannot find anything definite to say:

  • Is the behavior / design expected to ignore audio if the notification is delivered to the Apple Watch?
  • Is there a way to get a notification on Apple Watch and still play custom audio?
+3


source to share


1 answer


According to this thread , custom notifications for watches are not supported:

Custom notification sounds on Apple Watch are currently not supported.



I noticed that when your notification has no message, it never gets delivered to the watch. So one hack would have to send two notifications every time, not just one:

  • Custom sound, no message . This will play on the phone even if the screen is off.
  • No sound with message . This will play on either the watch or the phone depending on Apple's logic.
+1


source







All Articles