From 53572406e9cd1796f0b418b16903addad1f1adca Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Tue, 5 Nov 2019 20:37:01 +0100 Subject: [PATCH] Mark foreground service to use location and connection to other devices, so it can run properly on Android 10+ when app is in the background. Might fix #61. --- src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 78878739a..18042fa82 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -124,6 +124,7 @@ limitations under the License. android:name=".services.TrackRecordingService" android:enabled="true" android:exported="false" + android:foregroundServiceType="location|connectedDevice" android:icon="@drawable/ic_logo_color_24dp" android:label="@string/recording_service" />