jamesmontemagno / PermissionsPlugin

Check and Request Permissions Plugin for Xamarin and Windows
MIT License
283 stars 87 forks source link

Notifications permissions #144

Closed adrianknight89 closed 5 years ago

adrianknight89 commented 5 years ago

Looking at the Permission enum, I don't see a way to request notifications permission for sending push notifications. Am I missing something or does this feature need to be implemented?

    public enum Permission
    {
        Unknown = 0,
        Calendar = 1,
        Camera = 2,
        Contacts = 3,
        Location = 4,
        Microphone = 5,
        Phone = 6,
        Photos = 7,
        Reminders = 8,
        Sensors = 9,
        Sms = 10,
        Storage = 11,
        Speech = 12,
        LocationAlways = 13,
        LocationWhenInUse = 14,
        MediaLibrary = 15
    }
jamesmontemagno commented 5 years ago

This is a very complex API and only is needed on iOS so I don't intend to add this in at all. You can see how I do it here:

https://github.com/xamarinhq/app-conference/blob/master/src/Conference.iOS/Helpers/PushNotifications.cs