iOS voip pushkit代币何时更新
我的应用程序正在使用用户通知令牌和Pushkit令牌。 我设法将令牌既有了,并将它们保存到了我的服务器中。但是,当我卸载并重新安装我的移动应用程序时,APN仅更新我的用户通知令牌,而不是更新pushkit令牌。 这是苹果的默认行为吗? 我希望每当我重新安装我的应用时,APN都会更新两个令牌。
https://developer.apple.apple.com/forums/thread/679986 这是其他人发布的类似问题的链接,苹果的回答是重新安装应用程序时也应更新PushKit令牌
My app is using both user notification token and PushKit token.
I have managed to get both the tokens and saved them in my server. However, when i uninstall and reinstall my mobile app, APN only update my user notification token but not PushKit token.
Is this the default behaviour from Apple?
I am expecting APN to update both the tokens whenever I reinstall my app.
https://developer.apple.com/forums/thread/679986
This is the link for the similar question posted by others and the response from Apple was the PushKit token should also be updated upon reinstalling the app
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在尝试卸载和重新安装该应用程序之后,PushKit代币似乎只有在我从测试飞行中下载新应用时才发生变化。这是测试飞行构建的情况。尽管给出了不同的推杆令牌,但即使我重新安装了该应用程序,它也不会刷新。
我发现的此问题的解决方法是将我的服务器令牌附加到通知的有效载荷上,并将其与会话令牌中的当前记录进行比较。
After so many tries on uninstalling and reinstalling the app, the Pushkit token seems to only changed when I download the new app from test flight. It is the same case for test flight build. Despite giving a different Pushkit token, it wont refresh even if i reinstall the app.
The workaround for this issue that I figured out was to append my server token to the payload of the notification and compare it with the current logged in session token.