From 56c6ef321da48e0e4c289e2397908d080b26e7d3 Mon Sep 17 00:00:00 2001 From: SBiOSoftWhare Date: Thu, 2 Jun 2022 14:31:04 +0200 Subject: [PATCH] UserLocationService: Enable background location. --- Riot/Modules/LocationSharing/UserLocationService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/LocationSharing/UserLocationService.swift b/Riot/Modules/LocationSharing/UserLocationService.swift index f9c04aaef4..d6e6ae92ec 100644 --- a/Riot/Modules/LocationSharing/UserLocationService.swift +++ b/Riot/Modules/LocationSharing/UserLocationService.swift @@ -52,7 +52,7 @@ class UserLocationService: UserLocationServiceProtocol { // MARK: - Setup init(session: MXSession) { - self.locationManager = LocationManager(accuracy: .full, allowsBackgroundLocationUpdates: false) + self.locationManager = LocationManager(accuracy: .full, allowsBackgroundLocationUpdates: true) self.session = session }