Skip to content

Commit

Permalink
(android) bugfix: when grantPermission is called on Android 12 or bel…
Browse files Browse the repository at this point in the history
…ow, ensure success callback is invoked.

Fixes dpa99c#819
  • Loading branch information
dpa99c committed Dec 20, 2023
1 parent 72c243f commit 6ccd621
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/android/FirebasePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ public void run() {
requestPermissions(plugin, POST_NOTIFICATIONS_PERMISSION_REQUEST_ID, permissions);
sendEmptyPluginResultAndKeepCallback(callbackContext);
}
}else{
// No runtime permission required on Android 12 and below
callbackContext.success(1);
}

} catch (Exception e) {
Expand Down

0 comments on commit 6ccd621

Please sign in to comment.