[英]How to detect user uninstalled iOS App? I need push serious notification. I don't wanna lose it
I know Apple won't let you know user uninstalled your app. 我知道Apple不会让你知道用户卸载了你的应用程序。
My Problem 我的问题
I have an old legacy SMS system to send alert Short Message to end user. 我有一个旧的传统SMS系统,以向最终用户发送警报短消息。 Most of these messages are serious.
大多数这些消息都很严重。 Bottleneck is the GSM module has limitation when send hundreds SMS users simultaneously.
瓶颈是GSM模块在同时发送数百个SMS用户时有限制。 Delay is inevitable.
延迟是不可避免的。
Thus, I build a new alert system to send push notification to my users, if they installed my app. 因此,我建立了一个新的警报系统,如果他们安装了我的应用程序,就会向我的用户发送推送通知。 After register their phone number, their SMS Alert will be switched into new alert system.
注册电话号码后,他们的短信提醒将切换到新的警报系统。
Problem is some old school users prefer SMS rather than push notification. 问题是一些老学校用户更喜欢短信而不是推送通知。 They download the app, and register their phone number.
他们下载应用程序,并注册他们的电话号码。 Then, they found their phone doesn't have 3G data plan.
然后,他们发现他们的手机没有3G数据计划。 They deleted the app without un-register their phone number.
他们删除了应用程序,但未注销其电话号码。
My new system has no idea who deleted app without unregister phone number. 我的新系统不知道谁删除了应用程序没有取消注册电话号码。 All serious alert messages still keep sending into the nonexistent app one their phones.
所有严重的警报消息仍然不断发送到他们的手机中不存在的应用程序。
My Question 我的问题
Is there any smart idea or mechanism can detect user have deleted my app? 是否有任何聪明的想法或机制可以检测用户已删除我的应用程序?
APNS has a feedback service where Apple reports any device token that is no longer active on the users device. APNS提供反馈服务,Apple会报告用户设备上不再处于活动状态的任何设备令牌。 You are required by Apple to check the tokens from the feedback service and stop sending pushes to those devices.
Apple要求您检查反馈服务中的令牌并停止向这些设备发送推送。
You can use this same information to automatically move the user back to SMS. 您可以使用相同的信息自动将用户移回SMS。 Just tie the device token to the phone number in your database.
只需将设备令牌绑定到数据库中的电话号码即可。 If the token is active, send pushes to it.
如果令牌处于活动状态,则发送推送。 If it is reported by the feedback service to be in-active, remove it from your records and use the users phone number for SMS again.
如果反馈服务报告处于活动状态,请将其从记录中删除,然后再次使用用户电话号码进行短信。
Just remember that a device token can become active again, at which point, it will be registered with you through the same mechanism it was the first time. 请记住,设备令牌可以再次激活,此时,它将通过与第一次相同的机制向您注册。 Re-save it with the user and use push again.
与用户重新保存并再次使用push。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.