diff --git a/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt b/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt index bc132275..817c6218 100644 --- a/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt +++ b/android/src/main/kotlin/rekab/app/background_locator/provider/LocationParserUtil.kt @@ -28,7 +28,7 @@ class LocationParserUtil { Keys.ARG_SPEED_ACCURACY to speedAccuracy, Keys.ARG_HEADING to location.bearing, Keys.ARG_TIME to location.time.toDouble(), - Keys.ARG_PROVIDER to location.provider, + Keys.ARG_PROVIDER to location.provider ) } diff --git a/lib/location_dto.dart b/lib/location_dto.dart index c78022fe..c90a521c 100644 --- a/lib/location_dto.dart +++ b/lib/location_dto.dart @@ -12,7 +12,7 @@ class LocationDto { final double heading; final double time; final bool isMocked; - final String provider; + final String? provider; LocationDto._( this.latitude,