“推送通知"- 反馈,卸载应用程序 [英] "Push notification" - feedback, uninstall application

查看:36
本文介绍了“推送通知"- 反馈,卸载应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple 推送通知 - 反馈服务

Apple push notification - Feedback Service

您如何知道用户何时卸载了您的应用程序?以便您可以从推送服务器中删除他们的设备令牌.

How do you know when the user uninstalls your application? so that you can remove their devicetoken from the push server.

推荐答案

你根本不知道.您可以获取可能与相同应用程序令牌字符串相同的设备标识字符串,并跟踪特定设备的令牌是否已更改.因此,您可以使用新的设备令牌更新设备令牌,但无法确定您的应用程序是否已从设备中删除.

You simply don't know. You can grab device identification string which is presumably identical for the same application token string, and track if a token has changed for the specific device. So you can update the device token with a new one, but there is no way to find out if your app was removed from a device.

更新:你是对的.您可以从反馈服务中获取此信息,但有一个警告.您需要至少安装一个支持推送消息的应用程序才能保持持续的反馈连接.我会将这些客户标记为可能不存在,但我不会从客户数据库中删除这些人.谁知道为什么你的推送消息会被拒绝.您的设备可能处于不一致状态,您将永远删除您的订阅者.如果您有 10k 僵尸客户端,那么对于数据库来说,这就是零钱.如果您失去了 10 万个客户,那么您会遇到比这更严重的问题.

Update: You are correct. You can get this information from the feedback service, however there is a caveat. You need to have at least one push-messaging enabled application installed to maintain persistent feedback connection. I'd mark these customers as potentially non-existant, but I wouldn't remove these folks from a customer DB. Who knows why your push message can be rejected. Your device may be in inconsistent state and you remove your subscriber forever. If you have 10k zombie clients it is a pocket change for a DB. If you lost 100k clients you have much serious problems than that.

这篇关于“推送通知"- 反馈,卸载应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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