如何读取从iOS中的其他应用程序的推送通知

问题描述:

我想知道如何才能够阅读和获取iOS中另一个应用程序的推送通知的内容。如从Facebook Messenger或Twitter的推送通知。

I wanted to know how to be able to read and get the contents of another app's push notification in iOS. Such as a push notification from Facebook Messenger, or Twitter.

我知道这是可能的,因为这正是卵石Smartwatch折价iOS应用做什么。它截取了iPhone的推送通知,并将其发送到智能手表通过蓝牙。

I know this is possible because that is exactly what the Pebble Smartwatch iOS app does. It intercepts the push notifications of the iPhone and sends them to the smartwatch over Bluetooth.

设备,如卵石,使用与蓝牙ANCS服务。一个应用程序不能直接从其他应用访问的通知/。

Devices such as the Pebble, use the ANCS service with Bluetooth. An app cannot directly access the notifications for/from other apps.