Skip to content

GeolocatorAndroidConfiguration

Inherits: GeolocatorConfiguration

Android specific settings.

Properties

Properties#

foreground_notification_config #

foreground_notification_config: (
    ForegroundNotificationConfiguration | None
) = None

interval_duration #

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

The desired interval for active location updates.

use_msl_altitude #

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.