删除应用程式并重新安装后,标记计数会持续存在 [英] Badge count is persisted after deleting an app and installing it again

查看:100
本文介绍了删除应用程式并重新安装后,标记计数会持续存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程式中有一个通知部分,通知的总数会以应用程式图示上的「徽章计数」形式显示。当用户访问通知时,徽章计数减少。
假设用户现在卸载构建并重新安装它,即使用户尚未打开应用程序,徽章数也会直接显示在应用程序图标上。此显示的徽章计数与卸载应用时的徽标计数相同。实际上,一旦用户打开应用程序并访问了通知部分,就会显示徽章计数。

My application has a notification section in it, and the sum of the notifications are displayed in the form of Badge Count on the app icon. When the user accesses the notifications the Badge count decreases. Suppose the User now uninstalls the build and reinstalls it, the badge count is displayed on the app icon directly even if the user hasn't opened the app. This displayed badge count is the same as it was when the app was uninstalled. The badge count should actually be displayed once the user has opened the app and accessed the notifications section.

推荐答案

我有同样的问题,在几天前,当我测试应用程序从testFlight。

I have same issue before some days ago when I was tested app from testFlight.

一般来说,当您删除应用程式(显示一些徽章号码时)时,可能会发生此问题,并重新重新安装。但很难说实际的问题在哪里。

Generally this problem might be occur when you deleted the app (while it was showing some badge number), and re-installed it again. But it difficult to says that where is actual problem.

阅读

Read what Apple's official documentation is saying.


重置iOS上的推送通知权限警报第一个
推送启用的应用程序注册推送通知时,iOS会询问
用户是否希望接收该应用程序的通知。一旦用户
已响应此警报,则不会再次显示,除非
设备已恢复或应用程序已卸载至少一天。

Resetting the Push Notifications Permissions Alert on iOS The first time a push-enabled app registers for push notifications, iOS asks the user if they wish to receive notifications for that app. Once the user has responded to this alert it is not presented again unless the device is restored or the app has been uninstalled for at least a day.

如果您想模拟应用程式的首次执行,可以将
的应用程式移除一天。您可以通过将系统时钟向前设置一天或
更多,完全关闭设备,然后将设备恢复为
,实现后者而不需要

If you want to simulate a first-time run of your app, you can leave the app uninstalled for a day. You can achieve the latter without actually waiting a day by setting the system clock forward a day or more, turning the device off completely, then turning the device back on.

根据我的经验,有一些建议:

There are some suggestion from my experience:


  • strong> OFF 您的通知表单设置

  • 并在服务器端设置徽标0,然后从设备中删除并重新安装您的应用。 - 安装完成后,请运行app

  • 运行应用程序agin从设备中删除应用程序,然后在服务器1和打开设置。

  • OFF your notification form settings
  • And set badge 0 at server side and then delete and reinstall your app from your device. - After installation is over then run app
  • After run app agin delete you app from device and then reset badge at server 1 and ON your notification form settings.

不确定,但可能会对您有用。 :)

Not sure but might be this will working for you. :)

这篇关于删除应用程式并重新安装后,标记计数会持续存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆