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

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

问题描述

我知道,苹果公司不会让你知道用户卸载您的应用程序。

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

我的问题结果
我有一个旧的传统短信系统发送警报短消息给最终用户。大多数这些消息是严重的。瓶颈是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.

问题是一些老派的用户preFER短信,而不是推送通知。他们下载的应用程序,并登记他们的电话号码。然后,他们发现自己的手机不具备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有苹果的地方报告的任何设备令牌不再是活动的用户设备上的反馈服务。你被苹果公司要求检查从反馈服务令牌和停止发送推到这些设备。

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.

您可以使用同样的信息自动将用户回短信。刚刚扳平设备令牌的电话号码在数据库中。如果令牌处于活动状态,发送推给它。如果是由反馈服务报告是在活跃,从你的记录中删除它,然后再次使用用户的电话号码的短信。

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应用?我需要认真推通知。我不想失去它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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