我正在开发一个带有 watchkit 集成的应用程序,并且尝试让 watch 通过 wifi 接收推送通知,即使手机配对已断开连接(在本例中为飞行模式)。 但是当我尝试将通知发送到配对的设备 token 时,通知不会发送到 watch 。我认为这是可以预料的。但是有没有办法直接向 watch 发送通知呢?无需依赖 watch 与手机的连接?
最佳答案
根据他们的文档,如果手机断开连接, watch 似乎不可能接收远程通知。
- To receive SMS from third-party apps, MMS from third-party apps, or push notifications from third-party apps on your cellular model of Apple Watch, your paired iPhone must be powered on and connected to Wi-Fi or cellular, but it doesn't need to be nearby. You also need to be signed in to iMessage on your iPhone.
关于ios - 通过 wifi 向 Apple Watch 发送远程通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54791417/