[Question] How to disable Flet GUI app from using Windows location services? #5659
Replies: 2 comments
|
Flet itself does not automatically request or use location services on Windows. Location access is only involved if your app explicitly uses the Geolocator API (from Flet or from a any other plugin). You don’t need |
|
Hi, Thanks for the clarification. Our application does not explicitly use the Geolocator API from Flet or from any other plugin. I have reviewed the entire codebase, and there is no location-related implementation or permission request. However, we are still observing this behavior on Windows. Do you have any idea what else might trigger location access or cause GeolocatorPermissionStatus.denied to appear, even when the Geolocator API is not being used? Could this be related to a dependency, WebView component, or Windows-level permission setting? Is latest flet will resolve the issue? Thanks in advance for your guidance. |
Uh oh!
There was an error while loading. Please reload this page.
Question
Hi,
I have a Flet-based GUI application running on Windows. By default, the GUI tries to use location services, but in my use case project, location tracking is not required. In my code, we are not explicitly requesting location.
I want to make sure that:
The application does not request or use location when running on Windows.
Location access is effectively disabled within the GUI, so the app doesn’t prompt or interact with Windows location services.
What is the correct way in Flet to disable or block location usage on Windows?
Should I use GeolocatorPermissionStatus.denied, or is there another recommended method to completely turn off location tracking in the GUI?
We are using the flet==0.24.*
pyserial==3.5
pyyaml==6.0.2
matplotlib==3.10.3
pyinstaller==6.14.1
Code sample
Error message
------------------------------------------------------
All reactions