'On Reinstall application badge should be 0 But Badge count is persisted after deleting an app or installing it again in Xamarin Forms iOS [duplicate]

This issue happens when I delete the app and reinstall it. I can see the old Badge count without even opening the app. Once I open the app and close it, the proper Badge count is visible.

Where i need to set [UIApplication shared Application] setApplicationIconBadgeNumber:0 in Xamarin forms Application?

or it should be the OS based Issue?

Any other idea?



Solution 1:[1]

Try set the number as -1 if you cannot see where the number is increasing.

Add this to your app delegate file:

UIApplication.SharedApplication.ApplicationIconBadgeNumber = -1;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MarkPW