删除应用程序后的iPhone徽章号码
在我的应用程序中,我将在跳板图标中显示徽章编号。但当用户删除该应用程序并再次安装后,徽章编号会自动显示在跳板图标上。
我的问题是当用户删除我的应用程序时如何将徽章编号设置为 0。 当用户删除应用程序时会触发哪个方法?
谢谢。
In my application I will show the badge number in springboard icon. But after the user deletes the application and installs it again, the badge number automatically shows up on the springboard icon.
My question is how to set the badge number to 0 when user deletes my application.
Which method it will trigger when user deletes the application?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在用户下次运行您的应用程序时更新徽章编号。
更新徽章编号的唯一其他方法是使用推送通知,这不是您想要的。
You should update the badge number the next time the user runs your application.
The only other way to update the badge number is with a push notification, which isn't what you want here.