如何在 iOS 中读取来自其他应用程序的推送通知 [英] How to read push notifications from other apps in iOS

查看:41
本文介绍了如何在 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.

我知道这是可能的,因为这正是 Pebble 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.

推荐答案

Pebble 等设备,请使用 ANCS 服务,带蓝牙.应用无法直接访问其他应用的通知.

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

这篇关于如何在 iOS 中读取来自其他应用程序的推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆