在 Android 中是否有一个 iOS 等同于 NotificationListenerService 的东西?

Is there an iOS equivalent of NotificationListenerService in Android?

我目前正在开发一个可以与硬件设备通信的应用程序,当从任何应用程序(例如 Facebook、Twitter、消息)接收到任何传入的推送通知时,该硬件设备将通知用户。我已经完成了 Android 版本,但是,我不确定在 iOS.

中是否可行

据我所知,这是不可能的。 iOS 应用是沙盒。

好的,我发现有一种方法可以解决这个问题。 Apple 实际上提供了一个名为 Apple Notification Center Service (ANCS) 的服务来与 BLE 设备通信以获取所有通知数据。 Pebble 智能手表等设备也可能使用此方法。