Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Always return authorized for requestPermission on SDK 22 and below #344

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

mrousavy
Copy link
Owner

@mrousavy mrousavy commented Aug 9, 2021

…elow

What

Apparently requesting permission using the PermissionAwareActivity fails when on SDK 22 and below. This PR checks the SDK version, and if it is below 23 we simply always return authorized.

Changes

Tested on

Related issues

@mrousavy mrousavy added 🐛 bug Something isn't working 🤖 android Issue affects the Android platform labels Aug 9, 2021
@mrousavy mrousavy merged commit 494925c into main Aug 9, 2021
@mrousavy mrousavy deleted the fix/permission-sdk21 branch August 9, 2021 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android Issue affects the Android platform 🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [Android] Permission issues on API level 21
1 participant