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