UserNotifications.frameworkwas added in iOS 10 and replaced UIUserNotification.
You can use UNUserNotificationCenterto determine what is included:
var notificationSettings = await UNUserNotificationCenter.Current.GetNotificationSettingsAsync();
switch (notificationSettings.SoundSetting)
{
case UNNotificationSetting.Disabled:
break;
case UNNotificationSetting.Enabled:
break;
case UNNotificationSetting.NotSupported;
break;
}
source
share