Skip to main content

GeolocatorAndroidConfiguration

Android specific settings.

Inherits: GeolocatorConfiguration

Properties

Properties

foreground_notification_configclass-attributeinstance-attribute

foreground_notification_config: Optional[ForegroundNotificationConfiguration] = None

interval_durationclass-attributeinstance-attribute

interval_duration: DurationValue = field(default_factory=(lambda: Duration(milliseconds=5000)))

The desired interval for active location updates.

use_msl_altitudeclass-attributeinstance-attribute

use_msl_altitude: bool = False

Whether altitude should be calculated as MSL (EGM2008) from NMEA messages and reported as the altitude instead of using the geoidal height (WSG84). Setting this property true will help to align Android altitude to that of iOS which uses MSL.

If the NMEA message is empty then the altitude reported will still be the standard WSG84 altitude from the GPS receiver.

MSL Altitude is only available starting from Android N and not all devices support NMEA message returning $GPGGA sequences.

This property only works with position stream updates and has no effect when getting the current position or last known position.