删除应用程序后的iPhone徽章号码

发布于 2024-09-19 03:10:01 字数 135 浏览 2 评论 0原文

在我的应用程序中,我将在跳板图标中显示徽章编号。但当用户删除该应用程序并再次安装后,徽章编号会自动显示在跳板图标上。

我的问题是当用户删除我的应用程序时如何将徽章编号设置为 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 技术交流群。

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

发布评论

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

评论(1

骄兵必败 2024-09-26 03:10:01

您应该在用户下次运行您的应用程序时更新徽章编号。

更新徽章编号的唯一其他方法是使用推送通知,这不是您想要的。

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.

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