-
-
Notifications
You must be signed in to change notification settings - Fork 895
[Bug]: Permission.locationAlways.request doesn't wait for selection in system dialog #1457
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
Comments
I run into the same error -- same parameters. |
I got the same error |
Did someone find any solutions? |
I have made a timer to check for Permission.locationAlways.status every second until it is granted. It's not pretty but it works with some edge cases. |
What if user deny the permission? |
I'm waiting for 30 seconds, if it's not granted in that period I assume it's denied. |
@v1n4ester This is not optimal, as you also said. The location and locationWhenInSure both work, so the locationAlways should work by extension. It's therefore a bug that should be addressed via either a PR or by the community maintaining the plugin. |
any updates? I would imagine this is high priority for many devs |
Nope, problem still exist |
I got the same error |
Same. |
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
When calling
await Permission.locationAlways.request()
system dialog is shown but lib is not waiting for a selection, instead it just returns .denied.Expected results
To wait for a selection in location permission system dialog.
Actual results
PermissionStatus.denied is returned right away.
Code sample
Code sample
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
11.4.0
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: