question

SibalikMike-8717 avatar image
0 Votes"
SibalikMike-8717 asked brtrachMSFT-0711 edited

Badge count on Xamarin.iOS app icon incorrect after app re-install

I have a badge on my Xamarin.iOS app that shows how many unread notifications there are. I'm using UIApplication.SharedApplication.ApplicationIconBadgeNumber to set the badge count when the app starts up and whenever the unread notifications count changes. If I delete the app when the badge is showing 2 unread notifications, and I re-install it, the app icon still shows the 2 unread notifications from the old install. What needs to be done so a new install accurately shows no unread notifications (no badge showing)?

dotnet-xamarinforms
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ColeXia-MSFT avatar image
0 Votes"
ColeXia-MSFT answered

Hello,

Welcome to Microsoft Q&A!

The issue (badge count remained)is related to operating system , when an app in uninstalled, some values will be retained by system , including badge count .

Since there is no function to hook upon app is uninstalled and reinstalled, so it is impossible to remove the badge count until user open the application .


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


[1]: https://developer.apple.com/library/archive/technotes/tn2265/_index.html

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.