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

发布于 2024-09-24 03:57:33 字数 237 浏览 2 评论 0原文

先卸载应用程序,然后重新安装,我可以正常收到推送通知。 这是我的分析: 客户端卸载应用程序,但我的提供商服务器具有设备令牌。然后重新安装,APNS将相同的devicetoken传递给iphone,因此当新的推送项目到达APNS时,它成功地将项目传递给客户端。 我的应用程序已与提供商本身同步devicetoken记录,但是当重新安装后未启动时会出现此问题(如果用户重新安装后启动,我可以删除devicetoken下的注册帐户)。我该如何解决此问题?

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. 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.
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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

书信已泛黄 2024-10-01 03:57:34

在您保存新设备令牌之前,它永远不会被传递

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

It can not ever be delivered until you save the new device token from

- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文