Skip to content

Conversation

@fcristini
Copy link

return true in grantPermission if app already hasPermission to prevent caller to get stuck in android 13+ implementation

cordova.getThreadPool().execute(new Runnable() {
public void run() {
try {
if (Build.VERSION.SDK_INT >= 33) { // Android 13+

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if SKD is lower than 33? There should be else block with callbackContext.success(1);.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right it seems ok to me, would you like to apply the fix?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is applied in this PR

@marutifh marutifh merged commit 26de9a9 into marutifh:master Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants