I'm using ShortcutBadger NuGet for alerting number of notification not treated for my app Xamarin.Android. So the implementation is simple :
ShortcutBadger.ApplyCount(this, _UnreadNotifCount);
And I've implemented in OnMessageReceived method (I use FireBase notification):
public override void OnMessageReceived(RemoteMessage message)
{
ShortcutBadger.ApplyCount(this, 6);
SendNotification(message.GetNotification().Body, message.Data);
}
It works fine only in case of opened application and when I receive notification in Closed/Background application mode, it doesn't work!
Do you have any suggestion where/how can I update the badge number for Closed/Background application mode?