androidiosxamarinpermissionsxamarin.essentials

Xamarin: Setting and reading Notifications Permissions


I am implementing LocalNotifications in my Xamarin app. My app is useless without those set. I need a X Platform way of reading and requesting the Notifications Permissions on my App for iOS and Android. I looked in Xamarin Essentials it is not in there.

Thanks Mark


Solution

  • For Android, there is currently no need to set permissions to send notifications.

    For iOS, the app must be registered with the system and the app must explicitly request permission before sending notifications to the users. You don't have to configure the info.plist or your iOS project, however some approval levels must first be requested and set for both local and remote notifications.

    For more details, you can refer to the Apple Developer Documentation: Asking Permission to Use Notifications