Google Play foreground service permissions declaration: how to fix it
Why Google Play blocks apps targeting Android 14 over foreground service types, what the declaration and video must show, and when to drop the service instead.
You raise your target to Android 14 or later and the Play Console stops you with “Your app uses the following undeclared foreground service permissions”, followed by a list such as FOREGROUND_SERVICE_DATA_SYNC or FOREGROUND_SERVICE_MEDIA_PLAYBACK. Or you filled in the declaration and the release was rejected because the reviewer couldn’t match your app or video to the use case you chose. Either way, Google wants proof that each foreground service type your app requests backs a real feature the user starts and can see.
Why it happens
From Android 14 (API level 34), every foreground service must declare a type in the manifest (android:foregroundServiceType) and request the matching FOREGROUND_SERVICE_<TYPE> permission, on top of FOREGROUND_SERVICE. Google Play then requires apps that target Android 14 or higher to declare each type in the Play Console, and says all types are subject to review. Common reasons it fails:
- An SDK brought the permissions. Calling, video, meeting, media and location SDKs often declare several foreground service types. You inherit every one, even for features you never turn on.
- The video doesn’t show a user action. Google asks for a video of the steps the user takes to trigger the feature. A screen recording of the home screen, or of work that just happens in the background, doesn’t prove that.
- The type is wrong for the job. Periodic sync, analytics uploads or prefetching are not what dataSync is for in Google’s eyes. For a dataSync backup, Google says the video can’t show fully automatic or background backup.
- You used specialUse without explaining it. specialUse needs a free-form reason in the manifest and in the Play Console. Reviewers read both.
- The use case you picked doesn’t match the app. The reviewer compares your declared use case with what the app actually does.
How to fix it
- Open the Merged Manifest view in Android Studio (or inspect your release bundle) and list every FOREGROUND_SERVICE_* permission and every <service> with a foregroundServiceType. Note which library each comes from.
- For each type, ask: does a feature in my app start this from a user action, and would the user notice if it stopped? If not, you probably don’t need it.
- Remove unused types. Add tools:node="remove" to the <uses-permission> for that FOREGROUND_SERVICE_* permission. Do this only if you never start the SDK service that needs it: on Android 14, starting a service without the matching permission fails at runtime.
- Move work that doesn’t need a foreground service. For uploads or downloads the user starts, Google recommends a user-initiated data transfer job instead of dataSync. For deferrable or periodic work, use WorkManager. For short critical work, the shortService type needs no type-specific permission and runs for about 3 minutes.
- For each type you keep, open App content in the Play Console (under Policy, or Monitor and improve, depending on your menu) and complete the foreground service declaration: a description of the feature, the impact on the user if the system defers or interrupts the task, a video link, and the use case.
- Record a short video on a real device that starts in your app, shows the user triggering the feature, and shows the service running (the notification is a good signal). Upload it somewhere the reviewer can open without signing in, such as an unlisted YouTube video.
- Submit a new release. If you removed types, make sure no active bundle still declares them.
| Manifest type | Permission | Typical valid use |
|---|---|---|
| camera | FOREGROUND_SERVICE_CAMERA | Video chat that keeps the camera while multitasking |
| connectedDevice | FOREGROUND_SERVICE_CONNECTED_DEVICE | Talking to a Bluetooth, NFC, USB or network device |
| dataSync | FOREGROUND_SERVICE_DATA_SYNC | Upload, download, backup, import or export |
| health | FOREGROUND_SERVICE_HEALTH | Exercise tracking in fitness apps |
| location | FOREGROUND_SERVICE_LOCATION | Navigation or live location sharing |
| mediaPlayback | FOREGROUND_SERVICE_MEDIA_PLAYBACK | Audio or video that keeps playing in the background |
| mediaProcessing | FOREGROUND_SERVICE_MEDIA_PROCESSING | Transcoding media (about 6 hours per 24) |
| mediaProjection | FOREGROUND_SERVICE_MEDIA_PROJECTION | Screen sharing or casting with MediaProjection |
| microphone | FOREGROUND_SERVICE_MICROPHONE | Voice recording or calls in the background |
| phoneCall | FOREGROUND_SERVICE_PHONE_CALL | An ongoing call through ConnectionService |
| remoteMessaging | FOREGROUND_SERVICE_REMOTE_MESSAGING | Moving text messages between devices |
| specialUse | FOREGROUND_SERVICE_SPECIAL_USE | Valid uses no other type covers |
| shortService | None | Critical work that must finish, about 3 minutes |
Flutter, React Native, Expo and Unity
The rules are the same for every framework, because Google reads the final merged manifest. Plugins for audio playback, background location, calls and uploads are the usual sources. In Flutter and React Native, add the tools:node="remove" lines to android/app/src/main/AndroidManifest.xml. In Expo, list the full permission name in android.blockedPermissions in app.json. In Unity, use a custom main manifest.
Questions people ask
What should the foreground service video show?
The steps a user takes in your app to start the feature that uses the service, and the feature running. Google says the video should demonstrate those steps. Keep it short and on a real device.
An SDK added foreground service permissions I don’t use. Do I still have to declare them?
Google reviews what is in your final bundle. Either remove them with tools:node="remove" and make sure you never start the SDK service that needs them, or declare them with a real use case.
Should I use dataSync for uploads?
For transfers the user starts, Google recommends a user-initiated data transfer job instead. For periodic or deferrable sync, use WorkManager.
Does shortService need its own permission?
No. shortService has no type-specific permission. It still needs FOREGROUND_SERVICE and must finish in about 3 minutes.
Sources
Check your own name
Domains, both app stores, bundle IDs and every live site using the name, in under a minute.
Check a name