Vanethos / flutter_notification_permissions

Plugin for Flutter to check and ask for Notification Permissions
BSD 2-Clause "Simplified" License
81 stars 72 forks source link

Wait possibility for requestPermission method with status returned, 'openSettings' flag #12

Closed pawlowskim closed 5 years ago

pawlowskim commented 5 years ago

Hi, I just needed this lib to work the same way as other permission library. I have added proper result handling for request permission method. Right now it returns status from user action granted / denied.

Also added possibility to configure if open system settings or not (before it opens it every time when denied was returned).

This is slightly upgraded version of other PR, that doesn't return status for request call.

Vanethos commented 5 years ago

Thanks for the PR @pawlowskim ! And sorry for taking so long to review it