是否可以拦截另一个应用程序的推送通知? [英] Is it possible to intercept push notifications for another app?

查看:21
本文介绍了是否可以拦截另一个应用程序的推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想对我正在编写的应用程序中的另一个应用程序的远程推送通知采取行动.这可能吗?

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?

推荐答案

这在 iOS 上是不可能的.

This is not possible on iOS.

在注册接收推送通知时,设备令牌会分配给应用程序的安装.使用这些令牌作为接收者的标识符发送推送通知.然后,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.

绕过这一点的唯一方法是使用私有 API 进行一些低级别的网络拦截,这很可能只会为您提供 APNS 负载的加密版本.

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.

这篇关于是否可以拦截另一个应用程序的推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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