iPhone和Apple手表之间的通知同步问题

时间:2022-01-07 01:43:50

I am working on iOS app in which push notifications comes from web server. I do Apple watch configuration in Xcode by adding new target and make new Provisioning Profiles and use them in Xcode for Apple watch. When i test it some times notification appear on Apple watch some times on iPhone not on both. Any one help

我正在开发iOS应用程序,其中推送通知来自Web服务器。我通过添加新目标在Xcode中进行Apple Watch配置,并制作新的Provisioning Profiles并在Xcode for Apple watch中使用它们。当我测试它时有时会在Apple手表上出现通知,有时会出现在iPhone上而不是两者上。任何一个帮助

1 个解决方案

#1


0  

The OS determines which device to send the notification to based on a few different factors. Primarily, the Watch will only receive the notification if it is being worn – unless you turn off wrist detection – and the iPhone is locked.

OS根据几个不同的因素确定将通知发送到哪个设备。主要是,手表只会在佩戴时收到通知 - 除非您关闭手腕检测 - 并且iPhone已被锁定。

#1


0  

The OS determines which device to send the notification to based on a few different factors. Primarily, the Watch will only receive the notification if it is being worn – unless you turn off wrist detection – and the iPhone is locked.

OS根据几个不同的因素确定将通知发送到哪个设备。主要是,手表只会在佩戴时收到通知 - 除非您关闭手腕检测 - 并且iPhone已被锁定。