-
Notifications
You must be signed in to change notification settings - Fork 245
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
Android shows a GPS precision popup #1391
Comments
Learn about this in the api docs Config.disableLocationAuthorizationAlert |
ok, but, why prior this never occoured? We use the plugin almost a two years and just now this appears. We notice that was only in Motorola devices, with Android 11, that was strange, as we has almost 2k users and not all shows this screen. Again, we not modify configs before this dialogs starts opened. |
After reading the api docs mentioned, do you now understand that this is a magic dialog produced automatically by the OS? The plug-in says to the OS “here’s the kind of location accuracy I require: go”. The OS then says “thanks, I’ll take it from here” and the dialog is shown if required (eg location disabled globally in device settings). |
No idea. This mechanism is completely handled by the OS. The plug-in merely says to the OS: “here’s what I need”. The plug-in has used this mechanism for about 5 years and I don’t recall ever hearing of this problem. |
This mechanism is actually handled by search https://maven.google.com to learn about the available versions of |
We update the plugin settings to disallow the popup ( |
When you use 99% of use-cases do not require |
We put this for development tests, because this, we use the
But, the issues occur in production mode, when the |
You do not even need to think about If you are seeing that Dialog, then you are either:
|
Your Environment
flutter doctor
):Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 13.7.1 22H221 darwin-x64, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 15.1)
! CocoaPods 1.12.1 out of date (1.13.0 is recommended).
CocoaPods is a package manager for iOS or macOS platform code.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/to/platform-plugins
To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.95.3)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for iPhone de Augusto. Ensure the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
! Doctor found issues in 1 category.
Expected Behavior
Run without any alerts.
Actual Behavior
Not open the alert message bellow:
Steps to Reproduce
Context
We are facing some issues with the Android requesting the change of GPS precision. But, we also knows the app granted all the permissions needed to work, and, the device has the precision enabled. Also, this popup message don't works, even we touch on activate/later, it appears again or don't go out.
Debug logs
We don't have a log, because is production app and cannot reproduce in debug mode
The text was updated successfully, but these errors were encountered: