简体   繁体   English

重新安装iPhone应用程序后,为什么可以收到旧应用程序的推送通知?

[英]why I can receive the old app's push notification when the iphone app reinstall?

uninstall the app first, then reinstall, I can receive the push notification normally. 首先卸载应用程序,然后重新安装,我可以正常收到推送通知。 here is my analysis: client uninstalls app, but my provider server has the devicetoken. 这是我的分析:客户端卸载应用程序,但是我的提供程序服务器具有devicetoken。 then reinstall,APNS delivers the same devicetoken to iphone,so when a new push item comes to APNS,it successly delivers the item to the client. 然后重新安装,APNS将相同的设备令牌传递给iphone,因此,当有新的推送项传入APNS时,它将成功地将该项传递给客户端。 my app has synchronized devicetoken records with the provider itself,but this problem comes when no launching after reinstall(if the user launch after reinstall,I can remove the register accounts under the devicetoken).how can i solve this problem? 我的应用程序已将devicetoken记录与提供程序本身进行了同步,但是重新安装后没有启动时会出现此问题(如果用户在重新安装后启动,则可以删除devicetoken下的注册帐户)。如何解决此问题?

在您从以下位置保存新设备令牌之前,它永远无法交付

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 收到推送通知时,iPhone App崩溃 - iPhone App crashes when receiving push notification iPhone-应用仍在运行,收到推送通知=更改视图 - iPhone - App still running, receive push notification = change view 收到有关错误iPhone应用程序的通知 - Receive notification for the wrong iPhone App 为什么我的发布应用程序无法接收apns的推送通知,但可以在开发人员版本上使用? - Why my publish app can't receive the push notification of apns,it works on the developer version? 如何在我的应用未运行时处理推送通知 - how can I handle push notification when my app is not running 在iPhone应用程序上收到通知时,使用通讯录查找搜索名字 - Use Address Book for search firstname when receive notification on iphone app 应用关闭时如何接收推送通知? - how to receive push notification when app is turned off? 当app在后台时,如何对接收推送通知执行操作? - how to perform action on receive push notification when app is in background? 如何从应用程序外部收到的用户未激活/触摸的推送通知中接收信息? - How can I receive info from a push notification received outside of app that the user did not activate/touch? 我的应用推送通知仅在我的客户端的iPhone中不起作用 - My App Push Notification is not working in my client's iPhone only
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM