JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
85 stars 45 forks source link

I am not getting the persistent notification #72

Open kgoofori opened 1 year ago

kgoofori commented 1 year ago

I am not able to get the app running with the persistent notification even after running FlutterBackground.enableBackgroundExecution() successfully.

I am testing on Samsung A51 running android 12.

[✓] Flutter (Channel stable, 3.7.10, on macOS 12.5.1 21G83 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)

environment: sdk: '>=2.18.6 <3.0.0'

dependencies: flutter_background: ^1.2.0

Muhammad-Mohsen commented 1 year ago

I think this is related to https://github.com/JulianAssmann/flutter_background/issues/69 I'd try the solution by @jakoss to add the service to the AndroidManifset manually

<service android:name="de.julianassmann.flutter_background.IsolateHolderService" android:exported="false" />

KhaledYussef commented 1 year ago

<service android:name="de.julianassmann.flutter_background.IsolateHolderService" android:exported="true" />

Aturex1 commented 6 months ago

Not working here either. I'm using Android 14

flutter_background: ^1.2.0