Hello,
Welcome to our Microsoft Q&A platform!
If we click into the source code of NotificationManager.cs in xamarin android ,we will find the function as follows:
The type of class NotificationManager
is static
, so we can use NotificationManager
in the following way:
var channel = new NotificationChannel(CHANNEL_ID, name, NotificationImportance.Default)
{
Description = description
};
var notificationManager = (NotificationManager) GetSystemService(NotificationService);
notificationManager.CreateNotificationChannel(channel);
Best Regards,
Jessie Zhang
---
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.