Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone / IOS App Reinstall from App Store Has Old Badge and Value

When an app that has an app badge with a value is uninstalled and then installed again from the app store, it will have the "old" badge. Is this desired behavior? Is there a way to inform the installation / distribution not to use the "old" application badge?

The initial install does not have the badge.

This is all BEFORE that app is run after NEW installation.

like image 963
ort11 Avatar asked Nov 13 '22 09:11

ort11


1 Answers

I would try to hide the "old" badge icon using

[[[UIApplication] sharedApplication] setApplicationIconBadgeNumber:0];

You can easily check if it's first open of your app using some values in NSUserDefaults.

like image 125
akashivskyy Avatar answered Nov 16 '22 03:11

akashivskyy