You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Android: Resolve request permission when already true
Problem:
If permission is already enabled, the native call to `OneSignal.getNotifications().requestPermission(fallbackToSettings, Continue.with(...)` never suspends and the Continuation code block never runs. As a result, we would not be able to resolve the promise over the bridge.
Solution:
Before calling that method, do a permission check and return true. Opt to check the permission in Android instead of resolving early in Dart because the permission boolean may not be initialized correctly yet when requestPermission is called soon after initialization.
0 commit comments