Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Badge count is persisted after deleting an app and installing it again

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.

like image 552
user3568907 Avatar asked Apr 29 '14 12:04

user3568907


People also ask

How do I clear badge count on iPhone?

Go to Settings and open Notifications. Scroll down and tap on Messages. To disable notifications altogether, toggle off Allow Notifications. To remove badges, turn off the toggle next to Badges.

How do I get rid of app icon badges?

To Disable App Icon Badges Entirely If your Samsung Galaxy smartphone runs Android 11 or 12, open the Settings app and head into the "Notifications" menu. Then, tap "Advanced settings" and toggle off the "App icon badges" switch.

How do I get rid of app icon badges that won't go away iOS?

Check Notification Badge Settings Step 1: Launch the iPhone Settings menu and scroll to the bottom to select the affected app. Step 2: Select Notifications. Step 3: Toggle off the Badges option and toggle it back on.

Why are my app badges not showing numbers?

Some apps will combine multiple notifications into one and may only show the number 1. Other times, the badge may go away if you clear your notifications. If the badges are not displaying, you'll need to enable the notifications for that app and then turn on the app icon badges.


2 Answers

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.

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:

  • 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. :)

like image 95
iPatel Avatar answered Oct 03 '22 17:10

iPatel


The badge count is maintained by the operating system, independent of the app. When an app is uninstalled (deleted), some values are retained by the operating system, including the badge count. When the app is uninstalled, no developer method or script is called. You will either have to accept this limitation, or change your app's design to rethink and overcome this problem.

like image 42
Léo Natan Avatar answered Oct 03 '22 16:10

Léo Natan