-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Request permission on android (7+) #1
Comments
Thanks for noticing it, added your code with some modifications. I wasn't able to invoke OnRequestPermissionsResultCallback so you still have to relaunch the app to use it. Aiming SDK 21 seems safer ... |
It's not safer, as you know the user can still deny permission. 61 % of devices running android are Marshmallow and above so why not progressing along? |
My PR #25 fixes this. |
Thanks for your contrib ! |
* Modify FlutterLocation plugin to include new command so that developers can display the permission modal at specific points within their codebase. Added LocationPermissionStreamHandler to allow for listening for the users permission modal response. * Remove permission stream and replace with method channel. Refactor. * Remove permission stream. * Fix variable error.
LocationPlugin.java.txt
The text was updated successfully, but these errors were encountered: