From b4d881d24e78091101733052350297e12b810578 Mon Sep 17 00:00:00 2001 From: FaizHashmiCS22 Date: Wed, 21 May 2025 10:37:56 +0300 Subject: [PATCH] Testing BootCompleted Event --- android/app/src/main/AndroidManifest.xml | 3 +-- .../com/example/hmg_qline/hmg_qline/BootForegroundService.kt | 2 +- .../kotlin/com/example/hmg_qline/hmg_qline/BootReceiver.kt | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d519056..a25330d 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -30,8 +30,7 @@ + android:exported="true" /> = Build.VERSION_CODES.O) { + // For Android 11 (API level 30) or later context.startForegroundService(serviceIntent) } else { context.startService(serviceIntent)