Location retrieving doesn't work without internet or cellular data on adroid. when I get the location once or if I had the wifi and location turned on together then turned off wifi it works, but if from the beginning I turned on location while wifi is off it never works.
Actual results: location turned on together then turned off wifi it works, but if from the beginning I turned on location while wifi is off it never works
Expected results: Want to lat and long when i turn off and on location on my phone while wifi is off.
Code sample:
_positionStreamSubscription = Geolocator.getPositionStream( locationSettings: locationSettings, ). final locationSettings = AndroidSettings( accuracy: LocationAccuracy.best, distanceFilter: 0, forceLocationManager: true, );
Version geolocator: ^13.0.2
Flutter Version:
Flutter 3.32.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision fcf2c11572 (5 months ago) • 2025-06-24 11:44:07 -0700 Engine • revision dd93de6fb1 (5 months ago) • 2025-06-24 07:39:37 -0700 Tools • Dart 3.8.1 • DevTools 2.45.1