Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS reinstalling app does not clear badges

Tags:

ios

I have set the badge number of my app to 1 with a local notification. Then I uninstall the app. When I reinstall it the badge is still there. Is this an iOS bug or is there a way to clear the badges when it gets uninstalled?

thanks.

like image 635
micken Avatar asked Jul 14 '11 22:07

micken


People also ask

How do I clear app badge badges on my 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 you get rid of a notification on an app that won't go away?

First, press-and-hold on the persistent notification you want to remove. Another option is to swipe the notification left or right, and then tap on the cogwheel icon shown next to it. Next, tap on the switch next to Permanent to disable it, and then press Save.


2 Answers

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 until a day. When the app is uninstalled, no developer method or script is called. Actually there is a technical note from Apple about the matter: Here is the excerpt from Apple's official Technical Notes about push notifications:

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 following these steps:

  1. Delete your app from the device.
  2. Turn the device off completely and turn it back on.
  3. Go to Settings > General > Date & Time and set the date ahead a day or more.
  4. Turn the device off completely and turn it back on.
like image 97
Chanchal Raj Avatar answered Oct 05 '22 22:10

Chanchal Raj


As I know, iOS remembers badge value (which is appeared on the app icon). So you have to wait for a short period of time (1 day maybe), and then try to install it again.

like image 1
Fullmoon Avatar answered Oct 06 '22 00:10

Fullmoon