I’m implementing local push notifications,
AndroidNotificationCenter.SendNotification(new AndroidNotification
{
Title = title,
Text = body,
SmallIcon = "icon_0",
LargeIcon = "icon_1",
FireTime = System.DateTime.Now.AddSeconds(afterSec),
Number = 1
}, ChannelId);
Even if you set the number to Number like this, the badge will not be displayed.
Also, there is no push notification on the terminal itself.
On iOS, I was able to set a number in “iOSNotificationCenter.ApplicationBadge” and display the badge,
Is there any other place to set?
Initialization is performed as follows.
AndroidNotificationCenter.RegisterNotificationChannel(
new AndroidNotificationChannel
{
Id = ChannelId,
Name = "Default ChannelName",
Importance = Importance.High,
Description = "Channel Description",
});