Skip to content
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

not working when location service is turned off #315

Closed
Xgamefactory opened this issue Aug 16, 2019 · 13 comments
Closed

not working when location service is turned off #315

Xgamefactory opened this issue Aug 16, 2019 · 13 comments
Labels
status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. type: enhancement New feature or request

Comments

@Xgamefactory
Copy link

unlike other flutter plugins this one not working when location sevice is turned off.

@aronnelson
Copy link

Doesn't it need location services to work? How would it get the location?

@mvanbeusekom
Copy link
Member

@Xgamefactory can you clarify what you would expect? @aronnelson is correct that this plugin needs the location services to be running to work correctly, so what do you expect to happen when the services are not running?

@mvanbeusekom mvanbeusekom added the status: needs more info We need more information before we can continue work on this issue. label Aug 26, 2019
@mikron123
Copy link

  1. I'm calling Position position = await Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.high);

At some of the times, when the GPS was off, after I turned it on, it got the location.
Other time.. it didn't do nothing, until I opened google maps. (tested a few times) What is this "cold" condition?

  1. When the GPS is off there should be a native dialog to turn it on, and all the user has to do it to press yes (check out what happens in google maps when the gps is off) instead of the user having to slide the bar down, and turn it on by himself.

Thanks

@luis901101
Copy link

luis901101 commented Aug 27, 2019

Currently the plugin doesn't offer a good way to request the service location activation...
The class LocationPermissions is where the service permission and activation management is done... I think that instead of openAppSettings() method should be a requestServiceActivation() or something that helps the user to enable LocationService without getting into settings or QuickSettings... FusedLocation has a function to request ServiceActivation through an AlertDialog presented to the user this is how Google Maps does it, at least for Android

@jaykobi
Copy link

jaykobi commented Sep 13, 2019

I have the same problem. When I switch off GPS
await Geolocator().getCurrentPosition(desiredAccuracy: LocationAccuracy.low/high);
just never returns.

Should it not be possible to acces the device's location via locationManager.NETWORK_PROVIDER?

Also, even though the await never finishes,
geolocator.checkGeolocationPermissionStatus();
returns status granted.

@jaykobi
Copy link

jaykobi commented Sep 13, 2019

Should it not be possible to acces the device's location via locationManager.NETWORK_PROVIDER?
Obvious user error: No SIM-Card => no network....

@Xgamefactory
Copy link
Author

plugin should have a method to trigger location service turn off. it is possible to programmatically on native platforms, at least on android.

@StijnWoerkom StijnWoerkom added the type: enhancement New feature or request label Sep 30, 2019
@carlos-labrador
Copy link

I got same problem , I guess the plugin at least should return GeolocationStatus disabled but , it returns GeolocationStatus granted.
should you need a better explanation let me know. sorry about it.

@leoandfox
Copy link

I got same problem , I guess the plugin at least should return GeolocationStatus disabled but , it returns GeolocationStatus granted.
should you need a better explanation let me know. sorry about it.

I got the same issue

@mvanbeusekom
Copy link
Member

@carlos-labrador, @Hunter3173, if you want to know if the location services are running you can use the Geolocator().isLocationServiceEnabled() method. Please also check this issue for more details #414

We need to have a look if we can make the handling of enabling the location services in a more smooth way (which is what the original issue is about). As suggested by @luis901101 on Android we could use the FusedLocation manager to request service activation.

@leoandfox
Copy link

@carlos-labrador, @Hunter3173, if you want to know if the location services are running you can use the Geolocator().isLocationServiceEnabled() method. Please also check this issue for more details #414

We need to have a look if we can make the handling of enabling the location services in a more smooth way (which is what the original issue is about). As suggested by @luis901101 on Android we could use the FusedLocation manager to request service activation.

Thanks !

@carlos-labrador
Copy link

@carlos-labrador, @Hunter3173, if you want to know if the location services are running you can use the Geolocator().isLocationServiceEnabled() method. Please also check this issue for more details #414

We need to have a look if we can make the handling of enabling the location services in a more smooth way (which is what the original issue is about). As suggested by @luis901101 on Android we could use the FusedLocation manager to request service activation.

Thanks for your help.

@ghost ghost mentioned this issue May 21, 2020
4 tasks
@mvanbeusekom
Copy link
Member

Fixed in version 6.0.0

@mvanbeusekom mvanbeusekom added status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. and removed status: needs more info We need more information before we can continue work on this issue. labels Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants