Bug: OneSignal.Notifications.requestPermission(true) does not open Settings on Android
Description
When calling:
OneSignal.Notifications.requestPermission(true);
and notification permissions were already denied by the user, nothing happens on Android.
Expected behavior
The system Settings / App Notification Settings screen should open when fallbackToSettings is set to true.
Actual behavior
Nothing happens on Android after permissions were previously denied.
Notes
- Works correctly on iOS.
- Does not work as expected on Android.
Reference
https://documentation.onesignal.com/docs/en/mobile-sdk-reference#requestpermission-fallbacktosettings-push
Bug:
OneSignal.Notifications.requestPermission(true)does not open Settings on AndroidDescription
When calling:
and notification permissions were already denied by the user, nothing happens on Android.
Expected behavior
The system Settings / App Notification Settings screen should open when
fallbackToSettingsis set totrue.Actual behavior
Nothing happens on Android after permissions were previously denied.
Notes
Reference
https://documentation.onesignal.com/docs/en/mobile-sdk-reference#requestpermission-fallbacktosettings-push