-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Match official requestPermissions interface #1704
Comments
The |
Yes that's also a true. Then at least the android permission module should still provide some backward compatible interface. Currently it's |
yeah for the android module it makes sense to keep both I suppose ( |
Yes that's what I mean, it should take an array of string |
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: [] ```
…ermissions Requests runtime permissions list, fixes #1704
The Android API for requesting runtime permission has the following signature:
Currently via our
PythonActivity.java
class, we're providing:See https://github.com/kivy/python-for-android/blob/02519cc/pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java#L608
It would be great if our interface was also somewhat matching the official name/signature.
This would be a non-breaking change since we can keep our current
requestNewPermission()
method and just add the newrequestPermissions()
one.The text was updated successfully, but these errors were encountered: