How to detect user uninstalled iOS App? I need push serious notification. I don't wanna lose it

泪湿孤枕 提交于 2019-11-28 08:32:29

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!