Dev-hwang / flutter_foreground_task

This plugin is used to implement a foreground service on the Android platform.
https://pub.dev/packages/flutter_foreground_task
MIT License
152 stars 111 forks source link

Should notifications be mandatory? #285

Closed cho-4 closed 1 month ago

cho-4 commented 1 month ago

I don't want to use notifications, is there any way?

Dev-hwang commented 1 month ago

@cho-4

On Android 13 (API level 33) or higher, if the user denies the notification permission, they still see notices related to foreground services in the Task Manager but don't see them in the notification drawer.

The notefication will always appear in older versions.

Foreground services can run for a long time compared to other background api. This uses a lot of battery and memory resources on the device, so it would be correct to notify the user through a notification. Please be considerate of users and provide transparency in service use.

cho-4 commented 1 month ago

@Dev-hwang

Thank you for your reply.

So what you're saying is that there is no way to turn off notifications other than denying notification permissions, right?

Dev-hwang commented 1 month ago

@cho-4

Yes.. I'm sorry I couldn't help you :cry:

cho-4 commented 1 month ago

@Dev-hwang

No, thank you for your reply.