From 57a3a9b111f7f27a725557413aabf415e55286bd Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 26 Aug 2018 01:07:33 +0200 Subject: [PATCH] Request the FOREGROUND_SERVICE permission From https://developer.android.com/guide/components/services: "Apps that target Android 9 (API level 28) or higher and use foreground services must request the FOREGROUND_SERVICE permission. This is a normal permission, so the system automatically grants it to the requesting app. If an app that targets API level 28 or higher attempts to create a foreground service without requesting FOREGROUND_SERVICE, the system throws a SecurityException." --- app/src/main/AndroidManifest.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6ce50075..ed8a013a 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -12,6 +12,7 @@ +