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 112 forks source link

Missing foreground service type #281

Closed deakjahn closed 2 months ago

deakjahn commented 2 months ago

When publishing a new upgrade to the Play Store that contains the new 8.10.0 version, the store refuses to accept it with the following warning:

Missing foreground service type

From Android 14, developers must specify service types when foreground services are found in their app's manifest. Missing foreground service types may cause your app to crash. Your app's manifest declares com.pravera.flutter_foreground_task.service.ForegroundService, which starts in the foreground in the following place:

com.pravera.flutter_foreground_task.service.ForegroundService.com.pravera.flutter_foreground_task.service.ForegroundService.u

Make sure service types for the services that start in the foreground are specified in your app's manifest.

The docs seem to suggest that this is something we have to provide, so it would probably be nice to add to your documentation.

Dev-hwang commented 2 months ago

@deakjahn

It has already been added to the document. However, I will add that if the developer does not specify this, the app cannot be released to the Play Store.

Thanks for your suggestion.

deakjahn commented 2 months ago

Yes, you're right, the service type itself is in the example. You might also want to link to that documentation page because granting the indvidual types is also linked to other specific permissions that people need to be aware of.