-
Notifications
You must be signed in to change notification settings - Fork 2k
Requests runtime permissions list, fixes #1704 #1741
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
Requests runtime permissions list, fixes #1704 #1741
Conversation
|
Looks good and backwards compatible 👍 do you want me to test it as well with my app? |
|
Thanks @Jonast for the review. Yes feel free to test it. Keep in mind it requires pyjnius update otherwise it would crash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look reasonable, and I've verified with my own non-trivial app that requests sd card permissions that backwards compatibility with an old unaware app using the old call isn't broken 👍 (I runtime tested on an android device by going through the dialog and it worked as before)
|
@AndreMiras oh huh I am just thinking, the docs example might also need an update, right? the one given here: https://github.com/kivy/python-for-android/blob/master/doc/source/apis.rst#runtime-permissions |
Matches the official Android API via, making it possible to request multiple runtime permissions at once. Keeps the previous `android.permissions.request_permission()` interface for compatibility. Bumps pyjnius to post 1.2.0 release that solves required method resolution issues. On 1.2.0, the error was: ``` jnius.jnius.JavaException: No methods matching your arguments, available: [] ```
4976f18 to
2ea377e
Compare
|
Thanks @Jonast for the review and the heads-up, I've updated the PR with the documentation changes |
ghost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! (including docs changes) 👍


Matches the official Android API via, making it possible to request
multiple runtime permissions at once.
Keeps the previous
android.permissions.request_permission()interfacefor compatibility.
Bumps pyjnius to post 1.2.0 release that solves required method
resolution issues. On 1.2.0, the error was: