简体   繁体   English

如何检测用户卸载的iOS App? 我需要推送严肃的通知。 我不想失去它

[英]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.

相关问题 iOS - 我想更改语言警报推送通知 - iOS — I wanna change language alert push notification 缺少推送通知权利iOS应用提交(我不使用) - Missing Push Notification Entitlement iOS App Submission (I don't use it) 为什么我的离子iOS应用程序没有收到任何推送通知? - Why I don't get any push notification on my ionic iOS app? iOS推送通知:如何在应用程序处于后台时检测用户是否点击了通知? - iOS push notification: how to detect if the user tapped on notification when the app is in background? 解析推送通知:“无效令牌:用户可能已卸载了该应用程序” - Parse Push Notification: “Invalid Token: User might have uninstalled the app” 如何检测用户是否在Apple的推送通知确认提醒中点击“不允许” - How to detect if user tap on “Don't Allow” on Apple's push notification confirmation alert 我如何检测用户是否收到了远程通知但没有在Swift的IOS应用上打开它? - How can i detect that if user received Remote Notification but not open it on IOS app by Swift? 如果应用程序在iOS应用程序中处于后台,如何检测推送通知? - How to detect push notification if app is in background in ios app? 如何在正在运行的ios应用中推迟处理推送通知? - How can I defer handling a push notification in a running ios app? (快速3)我需要向用户发送通知,以在特定时间打开应用。 更好地使用本地或推送通知? - (Swift 3) I need to send a notification to the user to open the app at a specific time. Better to use a local or push notification?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM