使用 Swift 在 iOS 上拦截其他应用推送通知
Intercepting other apps push notifications on iOS with Swift
我需要拦截来自我的应用程序的以下推送通知:
- 短信/iMessage
- WhatsApp
- 电报
我将直接发送这些内容,通过蓝牙在外部设备显示屏上显示。
我看到 Pebble 正在这样做:
https://help.getpebble.com/customer/portal/articles/1191239-setting-up-ios-notifications
这可以实现吗?还是 Apple 的沙箱政策阻止了我?
如果问题出在 Apple,Pebble 如何处理?
谢谢:)
您可能想看看 ANCS。
"The purpose of the Apple Notification Center Service (ANCS) is to give Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices".
我认为这需要在蓝牙设备上编写自定义代码,因此这取决于您可以访问的内容。但据我所知,这是将您自己以外的应用程序的通知发送到连接的蓝牙设备的唯一方法。
我需要拦截来自我的应用程序的以下推送通知:
- 短信/iMessage
- 电报
我将直接发送这些内容,通过蓝牙在外部设备显示屏上显示。
我看到 Pebble 正在这样做: https://help.getpebble.com/customer/portal/articles/1191239-setting-up-ios-notifications
这可以实现吗?还是 Apple 的沙箱政策阻止了我? 如果问题出在 Apple,Pebble 如何处理?
谢谢:)
您可能想看看 ANCS。
"The purpose of the Apple Notification Center Service (ANCS) is to give Bluetooth accessories (that connect to iOS devices through a Bluetooth low-energy link) a simple and convenient way to access many kinds of notifications that are generated on iOS devices".
我认为这需要在蓝牙设备上编写自定义代码,因此这取决于您可以访问的内容。但据我所知,这是将您自己以外的应用程序的通知发送到连接的蓝牙设备的唯一方法。