尽管卸载了应用,但基于HTTP2的APNS请求响应成功。

问题描述 投票:0回答:1

在APNS请求成功后,无论设备令牌是否无效,我都能得到正确的信息。

最近,我意识到,即使用户卸载了应用,但我从APNS服务器上得到了 "200成功 "的响应。

是发生了什么变化还是我遗漏了什么?

ios apple-push-notifications http2 apns-php
1个回答
1
投票

这取决于苹果方面。请看 此处 了解更多详情。

APNs will eventually report that the push token is invalid after an app has been uninstalled. APNs will eventually report that the push token is invalid after an app has been uninstalled. 卸载和无效之间的时间取决于各种因素,何时会发生这种情况的细节没有记录。

这里的指导是向设备发送推送,直到你收到APN的错误响应。向不存在的应用程序发送推送不会造成任何伤害。

我们没有关于确定用户何时卸载应用的建议。 我们目前的实现确实是为了避免开发者进行此类检测,因此,我们没有任何服务、API 或代码样本可以在应用卸载时发送警报。

更多的想法也可以参考这个答案。apns http2 api在卸载应用后未返回状态410。

© www.soinside.com 2019 - 2024. All rights reserved.