Is it possible to intercept push notifications for another app?

扶醉桌前 提交于 2019-11-27 08:52:22

问题


I'd like to act on remote push notifications that are meant for another app in an app that I am writing. Is this possible?


回答1:


This is not possible on iOS.

A device token is assigned to an installation of an app upon registering to receive push notifications. Push notifications are sent using these tokens as an identifier of the recipient. iOS will then deliver the notification to the app that was assigned that particular device token.

The only way to bypass this would be to do some low-level network interception using private APIs, which would most likely only give you an encrypted version of the APNS payload.



来源:https://stackoverflow.com/questions/41420432/is-it-possible-to-intercept-push-notifications-for-another-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!