flutter_foreground_task icon indicating copy to clipboard operation
flutter_foreground_task copied to clipboard

Disable notification on Android

Open MELICI0US opened this issue 1 year ago • 3 comments

I want to turn off the Android notification when the app is running in the background. I am not sure if this is possible as this package currently stands, but it would be a nice feature if that was an option. If it's something you can already do, please tell me how.

MELICI0US avatar Feb 14 '24 18:02 MELICI0US

Any update on this?

lucasdidur avatar May 22 '24 12:05 lucasdidur

@lucasdidur there is a way to do it: if your app doesn't have notification permission, there is no notification show but this only happened with Android 13 and higher. I know this is a dumb solution but seems like the dev doesn't want to care about this

minhbn00 avatar May 28 '24 03:05 minhbn00

This has nothing to do with this plugin. Foreground services must always have a notification on Android. If you don't want this, you have to use the WorkManager, for example.

https://developer.android.com/develop/background-work/services/foreground-services

maeddin avatar Jun 27 '24 15:06 maeddin