Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve request permission call when permission already exists
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 early.
- Loading branch information