如何检测用户卸载的iOS App?我需要推送严肃的通知.我不想失去它 [英] How to detect user uninstalled iOS App? I need push serious notification. I don't wanna lose it

查看:67
本文介绍了如何检测用户卸载的iOS App?我需要推送严肃的通知.我不想失去它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道 Apple 不会让您知道用户卸载了您的应用.

I know Apple won't let you know user uninstalled your app.

我的问题
我有一个旧的传统 SMS 系统来向最终用户发送警报短信.这些消息中的大多数都是严肃的.瓶颈是 GSM 模块在同时发送数百条短信用户时有限制.延迟是不可避免的.

My Problem
I have an old legacy SMS system to send alert Short Message to end user. Most of these messages are serious. Bottleneck is the GSM module has limitation when send hundreds SMS users simultaneously. 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.

问题是一些老派用户更喜欢短信而不是推送通知.他们下载应用程序,并注册他们的电话号码.然后,他们发现他们的手机没有 3G 数据计划.他们在没有取消注册电话号码的情况下删除了该应用程序.

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. 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 有一个反馈服务,Apple 可以在其中报告用户设备上不再处于活动状态的任何设备令牌.Apple 要求您检查来自反馈服务的令牌并停止向这些设备发送推送.

APNS has a feedback service where Apple reports any device token that is no longer active on the users device. You are required by Apple to check the tokens from the feedback service and stop sending pushes to those devices.

您可以使用相同的信息自动将用户移回 SMS.只需将设备令牌绑定到数据库中的电话号码即可.如果令牌处于活动状态,则向其发送推送.如果反馈服务报告它处于非活动状态,请将其从您的记录中删除,然后再次使用用户电话号码发送短信.

You can use this same information to automatically move the user back to 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.

这篇关于如何检测用户卸载的iOS App?我需要推送严肃的通知.我不想失去它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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