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

requestNotificationPermissions() doesn't open notification settings directly on Android #24

Closed britannio closed 4 years ago

britannio commented 4 years ago

Actual behavior: opens the general app settings (user must then tap the notifications button) Expected behavior: opens the notification settings directly

Using this intent should solve the issue: https://developer.android.com/reference/android/provider/Settings.html#ACTION_APP_NOTIFICATION_SETTINGS

https://github.com/Vanethos/flutter_notification_permissions/blob/master/android/src/main/java/com/vanethos/notification_permissions/NotificationPermissionsPlugin.java#L40