[Question]: Position from getPositionStream() has 0 altitude #1412
Labels
P1
High-priority issues at the top of the work list.
platform: android
Issue is related to the Android platform.
type: bug
Something isn't working
Please check the following before submitting a new issue.
Please select for which platform(s) you need help
Your question
I have been using geolocator for quite a while, but after I just did a flutter upgrade, and now the altitude I get from listen()ing to getPositionStream() is always returning 0 for the altitude in the closure, even though there are more than 10 or 20 satellites in solution. The position I'm getting makes sense.
Using the following location settings:
locationSettings = AndroidSettings(
useMSLAltitude: true,
accuracy: LocationAccuracy.bestForNavigation,
distanceFilter: 0,
forceLocationManager: true,
intervalDuration: const Duration(seconds: 0),
//(Optional) Set foreground notification config to keep the app alive
//when going to the background
foregroundNotificationConfig: const ForegroundNotificationConfig(
notificationText:
"Marble Navigator will continue to receive your location even when you aren't using it",
notificationTitle: "Running in Background",
enableWakeLock: true,
));
Version
10.1.0
The text was updated successfully, but these errors were encountered: