-
Notifications
You must be signed in to change notification settings - Fork 143
Description
When submitting my app to Google Play, I received the following rejection message:
Restricted foreground service types
Apps targeting Android 15 or later cannot use BOOT_COMPLETED broadcast receivers to launch certain foreground service types. Doing this will cause your app to crash for users on Android 15 and later.
Your app starts restricted foreground service types using BOOT_COMPLETED broadcast receivers in the following places:
com.pravera.flutter_foreground_task
✅ What I did:
• Target SDK: 35 (Android 15), testing on Android 15.
• I did not add RECEIVE_BOOT_COMPLETED permission.
• I did not register any BOOT_COMPLETED BroadcastReceiver manually.
⸻
❓ Question:
• Does flutter_foreground_task internally register a BroadcastReceiver for BOOT_COMPLETED?
• If so, can we make this optional or disable it via configuration?
• How can I avoid this behavior to pass Google Play review?
⸻
💡 My Goal:
I want to use flutter_foreground_task for background 'dataSync', but still comply with Android 15+ and Play Store requirements.
Any advice or workaround would be greatly appreciated!