Questions tagged [geolocator]

74 questions
5
votes
1 answer

getCurrentPosition not returning location with airplane Mode ON

Plugin geolocator: ^9.0.1 with flight off mode works well, Not getting location /throwing any error if flight mode is on. I need to get location even in airplane mode Kindly suggest changes or other plugin with this feature Tried also with location…
GoVindh
  • 198
  • 1
  • 1
  • 10
4
votes
0 answers

Flutter - Location setting does not show up in setting options [ Only iOS]

I somewhat got in a tricky situation, I'm developing an app that highly depends on location services. It works perfectly fine on android but on ios, it says PermissionException permission is denied permanently. I do have permission strings in my…
Mehmet Karanlık
  • 237
  • 1
  • 10
2
votes
0 answers

IOS device are not returning accurate location Flutter Geolocator package

one of the functionality of the app is to scan a qr code -> fetch user current location -> check that location matches with a geofence or with in geofence -> if so complete desginated task or else show error to user saying u r offsite in the…
2
votes
2 answers

Using geolocator GPS stream with Riverpod StreamProvider

I'm wrestling with using the streaming GPS feature (StreamSubscription) of the geolocator package with the StreamProvider function of Riverpod in order have a global variable that has constantly updated user GPS coordinates. Using the geolocator…
Kevin
  • 964
  • 14
  • 19
2
votes
2 answers

geolocator - App crashes when asking for permission

When I request permission to access the location, the program crashes. I searched a lot, but I did not find a neat solution. any solution? the code: Future _determinePosition() async { LocationPermission permission; permission =…
2
votes
5 answers

flutter geolocator package not returning the longitude and latitude values

I am using the flutter geolocator package to get a device's current location. but, it is not returning the location and sends null values instead of longitude and latitude. I have linked all the codes related to location access for Android and…
2
votes
0 answers

Execution failed for task ':location:parseDebugLocalResources'

i'm trying to run my project , i have this page where i want to get current location of the user but i get a message error when i run it Message error ** Execution failed for task ':location:parseDebugLocalResources'. Could not resolve all files…
nullonprog
  • 119
  • 1
  • 9
1
vote
1 answer

Flutter package Geolocator not showing current location

I am learning Flutter and trying to rebuild Clima project following londonappbrewery's flutter course. After I installed the geolocator package and invoked the getCurrentPosition method, I got nothing. The geolocator version is ^9.0.2 with flutter…
1
vote
2 answers

get location updates every 15 mins

I want to get updates on my location every 15 mins even when the phone sleeps and when the app is minimized. I am currently using workmanager and geolocator to get it but it doesn't work. It kept showing me that the location updates is stopped and…
wuuyungwuu
  • 83
  • 13
1
vote
0 answers

geofence_flutter Bad State Stream has already been listened to

I'm using geofence_flutter: ^2.0.0 for geofencing. Everything working fine, but when I'm trying to stop and start its giving error. My Code locatoinPunch(){ await Geofence.startGeofenceService( pointedLatitude: locLat, pointedLongitude:…
Honey Last
  • 255
  • 1
  • 3
  • 15
1
vote
1 answer

GeoFencing not working with Geolocator in Flutter

I am getting this error while debug build my flutter app. Because easy_geofencing 0.2.0 depends on geolocator ^7.7.1 and no versions of easy_geofencing match >0.2.0 <0.3.0, easy_geofencing ^0.2.0 requires geolocator ^7.7.1. I am using geolocator:…
1
vote
0 answers

How Set Interval of Geolocator.getPositionStream()

I have to increase the call time of setLocation() because I spend so much on google APIs (in 2 days 100€ and I am only testing the app). I have tried timers and debounce functions but have not yet been able to come up with a…
Simone
  • 83
  • 6
1
vote
0 answers

older version of flutter plugins that compatible with SDK 31

I just finished developing an app but when I compile to apk the following error appear Warning: The plugin geolocator_android requires Android SDK version 33. For more information about build configuration, see…
1
vote
1 answer

Getx oninit dont replace values - Geolocator

I was testing a code on my Android device but in the replacement part of the code in the terminal it prints the previous values and not the values changed in the getPosition(). CODE WITH GEOLOCATOR import 'package:geolocator/geolocator.dart'; import…
SamirVega
  • 33
  • 2
1
vote
1 answer

Flutter Geolocator.isLocationServiceEnabled() isn't working as intended

I'm trying to access a location in Flutter via the Geolocator package. This works well but the location permission check has some sort of bug. I check if the location service is enabled. Once it's accessed i check the users permission and then…
icecase
  • 23
  • 3
1
2 3 4 5