ios - 通过 wifi 向 Apple Watch 发送远程通知

标签 ios swift push-notification watchkit

我正在开发一个带有 watchkit 集成的应用程序,并且尝试让 watch 通过 wifi 接收推送通知,即使手机配对已断开连接(在本例中为飞行模式)。 但是当我尝试将通知发送到配对的设备 token 时,通知不会发送到 watch 。我认为这是可以预料的。但是有没有办法直接向 watch 发送通知呢?无需依赖 watch 与手机的连接?

最佳答案

根据他们的文档,如果手机断开连接, watch 似乎不可能接收远程通知。

  1. 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.

来自:https://support.apple.com/en-us/HT205547

关于ios - 通过 wifi 向 Apple Watch 发送远程通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54791417/

相关文章:

ios - 将 'GoogleSignIn' 添加到框架会导致 'symbol(s) not found for architecture x86_64' 崩溃

swift - 无法调用不同类中的函数,错误 : Cannot invoke with my parameter type

ios - Swift2 许多 UIEvent 都有巨大的延迟

swift - 自动布局:当顶部边缘固定到安全区域时没有反弹效果

heroku - 尝试检索Google日历事件时,WEB_HOOK channel 不可用

ios - 点击通知后如何显示某个 View Controller 并发送数据?

ios - 导轨 : Error occurred while parsing request parameters.(HTTP PUT)

ios - MKMapView 错误和 SFViewController 错误

ios - 有没有办法像我们在 iOS 中那样将用户发送到 macOS 下应用程序的隐私设置?

Swift 本地推送通知操作 View