public void RegisterChannel(string cID, string cName, string cDescription)
{
if (Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.O)
{
var name = cName;
var descriptionText = cDescription;
var importance = Android.App.NotificationImportance.Max;
var mChannel = new NotificationChannel(cID, name, importance);
mChannel.Description = descriptionText;
var uri = Android.Net.Uri.Parse("android.resource://com.aaa.bbb/" + Resource.Raw.ring.ToString());
mChannel.SetSound(uri, null);
mChannel.ShouldShowLights();
mChannel.ShouldVibrate();
mChannel.CanBypassDnd();
var notificationManager = CrossCurrentActivity.Current.AppContext.GetSystemService(Android.Content.Context.NotificationService) as NotificationManager;
notificationManager.CreateNotificationChannel(mChannel);
}
}