Closed WingCH closed 1 month ago
https://github.com/Dev-hwang/flutter_foreground_task/tree/feat-%23237
I added the code so that the developer can handle the service request error. will publish atfer testing
Good! Thanks for your quick follow-up.
Please update to the latest version and check.
We are encountering an issue where various foreground services, such as startForegroundService, fail for unknown reasons on some Android versions. This issue seems to be related to the restrictions mentioned in the official Android documentation: Background work restrictions.
Specifically, we are encountering the ForegroundServiceStartNotAllowedException. If this exception is thrown, it would make debugging easier.
Here is an example code snippet demonstrating the issue:
// android/src/main/kotlin/com/pravera/flutter_foreground_task/service/ForegroundServiceManager.kt