flutter_background
flutter_background copied to clipboard
A flutter plugin to keep apps running in the background via foreground services. Android only.
**Describe the bug** I would like to make an app that periodically reads NFC tags in the background. When it goes into background execution the NfcManager part is not executed....
Without it the IsolateHolderService won't start. See issue https://github.com/JulianAssmann/flutter_background/issues/69 Perhaps the reasoning behind [this change](https://github.com/JulianAssmann/flutter_background/commit/fcce0d57525802b6f720dee0a080a10a0feaca4b#diff-93083d0574bec8be4b25f798b65dd82a612412c23a79dc9bdfdfb4a6b7ab37a3L5-L13) was that users should declare the service in the application's AndroidManifest.xml, but this has not...
**Describe the bug** On AppLifecycle Detached the notification is gone and no new notification is shown **To Reproduce** 1. Launch the App 2. Connect to websocket or any server 3....
my code:  version: 0.1.6 issue E/MethodChannel#flutter_background( 9919): Failed to handle method call E/MethodChannel#flutter_background( 9919): kotlin.KotlinNullPointerException E/MethodChannel#flutter_background( 9919): at de.julianassmann.flutter_background.FlutterBackgroundPlugin.onMethodCall(FlutterBackgroundPlugin.kt:67) E/MethodChannel#flutter_background( 9919): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:230) E/MethodChannel#flutter_background( 9919): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/MethodChannel#flutter_background( 9919):...
**Describe the bug** The release 1.2.0 is broken on real devices (Pixel/Samsung/Motorola). The always-visible-notification is not shown anymore and the app stopps working after some time. **Workaround** Downgrading back to...
**Describe the bug** The result of ``` bool initialized = await FlutterBackground.initialize(androidConfig: androidConfig); ``` is always false, since ``` override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean { try...
- Upgrade from 1.1.0 to 1.2.0, combined with background task flutter_background disabling background recording, 1.1.0 is normal
https://github.com/JulianAssmann/flutter_background/blob/d1ca4140ce43ad4e85545eb474ed70d8574996f3/example/lib/home_page.dart#L206-L207 Why did you use has Permissions twice?
## State of the art I can configure the background service as follows: ``` final androidConfig = FlutterBackgroundAndroidConfig( notificationTitle: "flutter_background example app", notificationText: "Background notification for keeping the example app...
https://developer.android.com/about/versions/14/changes/fgs-types-required https://developer.android.com/about/versions/14/changes/fgs-types-required#media-projection https://developer.android.com/reference/android/content/pm/ServiceInfo#FOREGROUND_SERVICE_TYPE_MEDIA_PROJECTION ``` E/AndroidRuntime(16537): java.lang.RuntimeException: Unable to start service de.julianassmann.flutter_background.IsolateHolderService@ceb8b4b with Intent { act=START cmp=com.remotelegal.astra/de.julianassmann.flutter_background.IsolateHolderService }: java.lang.SecurityException: Starting FGS with type mediaProjection callerApp=ProcessRecord{5ba1ad5 16537:com.remotelegal.astra/u0a549} targetSDK=34 requires permissions: all of...