Google Play Foreground Service Policy: Mandatory Demo Video Guide

If you're an indie developer shipping an Android app to Google Play, you will encounter strict requirements for foreground services. The Google Play foreground service permission declaration process, especially the mandatory demo video, can lead to rejections and delays if not followed precisely.
This guide details Google Play's foreground service policy, outlines strict use-case requirements, explains how to record a compliant demo video, and provides steps for submitting the declaration form. Following these instructions will help you meet Google's expectations and avoid policy violations.
Understanding Google Play's Foreground Service Policy
Google Play enforces strict rules for foreground services. A foreground service must be used only for tasks where the user is actively aware and interacting with an ongoing activity, or for critical functions that cannot be deferred or executed in the background without interruption to the user experience.
The policy targets misuse of the FOREGROUND_SERVICE permission. If your app targets Android 10 (API level 29) or higher and uses a foreground service, you must declare its type in your AndroidManifest.xml using the android:foregroundServiceType attribute. This attribute accepts values like "location", "mediaPlayback", or "connectedDevice". This declaration ensures the app's use of a foreground service aligns with a legitimate, user-facing purpose.
Google's review team checks your app's manifest for consistency between your declared foreground service type and your demo video. If your app requests FOREGROUND_SERVICE but fails to demonstrate a clear, user-initiated, user-benefiting foreground task, the submission will be flagged for non-compliance.
Google Play's Approved Foreground Service Types and Practical Examples
Google specifies a limited set of foreground service types. Your app must align with one of these categories to receive approval; merely running a background task is insufficient. The service must support a specific, user-facing activity that directly benefits the user and requires continuous operation, even when the app's UI is not open.
mediaPlayback: For apps playing audio or video in the background (e.g., music players, podcasts).location: For apps that require continuous access to location data, like navigation or fitness trackers recording a run.connectedDevice: For apps maintaining a connection to an external device (e.g., smartwatches, Bluetooth peripherals).camera: For apps that continue to capture images or video in the background.microphone: For apps that record audio in the background.mediaProjection: For screen recording or casting.dataSync: For short-running data transfer operations, like syncing files.
For example, if your habit tracker app allows users to start a focused work session (like the Pomodoro technique) and needs to play a continuous ambient sound, this could be a legitimate use for a foreground service with the mediaPlayback type. The service would ensure the sound continues even if the user navigates away from the app. However, if your app only needs to periodically check if a habit is due without direct user initiation or a visible notification, a foreground service is inappropriate; WorkManager or alarms should be considered instead.
The user must be aware of the ongoing task via a persistent notification and be able to control or dismiss the service. This awareness and control are what Google looks for.
Recording Your Mandatory Foreground Service Demo Video
Google requires a video demonstrating the legitimate use of your foreground service. This video is mandatory, and submissions with a poorly made or non-compliant video are frequently rejected. The video must clearly present the user journey, the persistent foreground notification, and the explicit user benefit.
- Start with a clean state: Start by showing your app launching from the device's home screen or app drawer.
- User Initiation: Clearly demonstrate explicit user initiation of the task that requires the foreground service, such as tapping a "Start Workout" button or initiating a navigation route.
- Foreground Notification: Show the persistent notification that appears in both the status bar and the notification shade when the foreground service starts. This notification must clearly state the service's ongoing activity (e.g., "Tracking your run," "Playing music").
- Demonstrate Functionality: Demonstrate the foreground service performing its intended task. For a location service, show continuous location tracking even after the user navigates away or puts the app in the background. For media playback, show the audio playing continuously.
- Explain User Benefit: Use narration or clear on-screen text to explain *why* the foreground service is necessary and its direct benefit to the user. For example, "This service ensures your workout is tracked accurately even if you switch apps, preventing data loss."
- User Control/Dismissal: Show how the user can stop or dismiss the foreground service, either via the app's UI or by interacting with the persistent notification.
Keep the video concise, ideally under 60 seconds. Ensure the resolution is clear enough to read all on-screen text and UI elements. Upload the video to an unlisted YouTube link or a similar publicly accessible video hosting service that does not require login credentials for viewing. Low-quality or blurry videos may lead to rejection as reviewers cannot verify critical details.
Submitting the Foreground Service Declaration in Google Play Console
After preparing your app and recording the demo video, submit the declaration in the Google Play Console. Carefully following these steps will streamline the review process.
AdvertiseYour app or tool hereReach indie iOS & Android developers while they build their store listing.See rates →- Navigate to the App Content Section: In your Google Play Console, select your app. From the left-hand menu, navigate to Policy & Programs > App content.
- Find "Sensitive app permissions and APIs": Locate the "Sensitive app permissions and APIs" section and click "Start" or "Manage."
- Locate Foreground Service Declaration: Within the "Sensitive app permissions and APIs" section, find the "Foreground Service" card and proceed with the declaration.
- Declare Foreground Service Types: Declare all foreground service types your app uses (e.g.,
MEDIA_PLAYBACK,LOCATION). Select only those that accurately reflect your app's functionality, as misrepresentation will lead to rejection. - Provide Justification: For each declared type, provide a concise explanation justifying its use. Describe the user-facing feature it enables and specify why alternative background APIs (like WorkManager) are insufficient for this functionality.
- Link Your Demo Video: Paste the unlisted URL to your mandatory demo video. Verify that the link is publicly accessible and functional.
- Review and Save: Review all declarations and justifications for accuracy and alignment with your app's functionality and demo video. Save your changes.
- Submit Your App for Review: The foreground service declaration is part of your app's overall submission. After saving, proceed to create a new release and submit your app bundle for review. Google's team will evaluate your declaration alongside your app's binaries.
Even if your app has been approved before, any changes to foreground service usage or manifest declarations may trigger a new review of this policy. Always ensure your declarations and video are up to date with your latest app version.
Avoiding Rejection: Common Mistakes with Foreground Services
Google's review team is thorough. To improve your chances of approval, avoid these common pitfalls:
- Generic Descriptions: Avoid vague statements like "for background tasks." Be specific about the user benefit, such as "to provide continuous GPS tracking for fitness activities."
- Missing or Unclear Notification: The persistent notification is mandatory. If your demo video does not clearly show it in both the status bar and notification shade, or if its content is vague, your app will be rejected.
- No User Initiation: Foreground services must be explicitly user-initiated. Videos showing automatic service startup without a clear user action will result in rejection.
- Misrepresenting Use Cases: Declaring a
locationforeground service for occasional, non-continuous location checks will lead to rejection. Your app's declared usage must precisely match its code implementation and behavior. - Broken Video Links or Poor Quality: An inaccessible or unwatchable video is treated as a missing video. Test your link and ensure the video is clear, well-lit, and, if narrated, audible.
- Using Foreground Services for Deferred Work: If a task can wait for specific conditions (e.g., device idle, Wi-Fi connected), it should use APIs like WorkManager, not a foreground service. Google's policy mandates using the least intrusive method appropriate for the task.
Google's policies emphasize user trust and experience. Properly documenting and demonstrating your app's legitimate use of foreground services is crucial for compliance and for shipping a high-quality product.
FAQ
Why does Google Play have such strict rules for foreground services?
Google Play enforces strict rules for foreground services to enhance user experience, preserve battery life, and protect user privacy. These rules prevent apps from running invisible, power-intensive tasks in the background without the user's explicit knowledge or consent, thereby ensuring transparency and user control.
Can I use a foreground service for any background task in my app?
No, you cannot. Foreground services are reserved for specific, user-facing tasks that require continuous, uninterrupted operation and a persistent notification to inform the user. For general background tasks that don't require immediate, continuous operation, you should use alternatives like WorkManager, JobScheduler, or alarms.
What happens if I don't declare my foreground service correctly?
Failure to declare your foreground service correctly, or if your app's usage contradicts your declaration and demo video, will likely result in Google Play rejecting your app submission. This can cause delays in releases or updates; repeated violations may also impact your developer account standing.
How long should the demo video for foreground services be?
While there isn't a strict maximum length, aim to keep your demo video concise, ideally under 60-90 seconds. Focus on clearly demonstrating user initiation, the persistent notification, the ongoing activity, and the user's ability to stop the service. A shorter, clearer video is more effective for review.
Do I need a new demo video for every app update?
You typically only need to provide a new demo video if you change how your app uses foreground services, introduce new foreground service types, or make significant changes to the user flow that initiates the service. If the functionality remains the same, your existing video and declaration should still be valid.
Preparing for Your Next Google Play Submission
Navigating Google Play's policies, especially for sensitive permissions like foreground services, requires attention to detail. Following these guidelines for your foreground service declaration and demo video will increase your chances of a smooth app review.
As you prepare your app for submission, consider all listing details. Tools like LaunchShots for compelling screenshots and our Privacy Policy Generator can help ensure compliance and build user trust.
Make your App Store screenshots free
LaunchShots is a free, in-browser screenshot maker. No signup, no watermark.
Open the app →
Comments (0)