Google Play prominent disclosure: a location rejection fix
Google Play prominent disclosure rejections for location, twice in one release. The disclosure gate, background location flow and data rules that fixed both.
By Hamza Ghouri
Google Play rejected a parking app I work on, where drivers hand over and claim parking spots, under its Prominent Disclosure and Consent policy. The system location prompt appeared on Home right after login, with nothing before it. I fixed that, and the next review flagged a second screen that asked for background location on its own. Both rejections came from the same mistake: the app asked for location when it suited the code, not when the user had a reason to say yes. This post covers what Google Play prominent disclosure means in practice, the gate I put in front of every location prompt, and how background location changed.
What is Google Play prominent disclosure?
It is an in-app screen, shown right before a permission request, that says what data the app collects, why, and how it is used, and lets the user decline. Google's best practices for prominent disclosure and consent say it must sit in the app itself, not only in the store listing or privacy policy, and must always offer a way to cancel. Background location is one of the permissions it names, and it needs its own separate disclosure.
Rejection one: a system prompt with nothing before it
The first rejection was plain. A user logged in, landed on Home, and the operating system's location dialog appeared. Nothing on screen explained why a parking app wanted their position.
Patching Home alone would not have been enough, because the map, the screen for posting a spot and the onboarding permissions step all dealt with location too. So I moved the whole decision into one function.
That function lives in the location service and is now the only place that asks for foreground location. It shows the disclosure first and asks only when the user taps Continue. A simplified version with the geolocator plugin:
Future<bool> ensureLocation(Future<bool> Function()? disclose) async {
if (!await Geolocator.isLocationServiceEnabled()) return false;
var permission = await Geolocator.checkPermission();
if (permission == LocationPermission.whileInUse ||
permission == LocationPermission.always) return true;
// No disclosure available (a background isolate, a test): never prompt.
if (disclose == null || !await disclose()) return false;
if (permission == LocationPermission.deniedForever) {
await Geolocator.openAppSettings();
return false;
}
permission = await Geolocator.requestPermission();
return permission == LocationPermission.whileInUse ||
permission == LocationPermission.always;
}
Three rules are in there. "Not now" and the back button are never consent. When the operating system has stopped showing its dialog, Continue opens the app's Settings page instead of a prompt that would silently do nothing. And code with no way to show a disclosure, such as a background isolate, never prompts at all. That last one matters most, because it makes the safe behaviour the default for any new caller.
Read permission state without asking for it
The callers changed too. The map and the post screen now read the permission state when they load, without asking. Only a tap asks, and it goes through the disclosure. The user always does something first, so the request has a visible cause.
Home shows the disclosure once after login, sign-up or onboarding, and a "Location is off" card while permission isn't granted. The onboarding permissions step now covers notifications only. My default for any permission is the same: check freely, ask only after a tap, and leave a visible way back for someone who said no.
Rejection two: asking for "Allow all the time" on its own
The next review flagged a sheet that invited drivers to let others nearby find them. It asked for "Allow all the time" on its own on Home, and again from Profile, after the system prompt had already fired. The sheet was a feature pitch, but to a reviewer it was a background location request with no disclosure in front of it.
On Android this is also a platform rule. Android's guide to requesting background location says that on Android 11 and higher the system dialog no longer includes "Allow all the time", and users have to turn it on from a settings page.
So the automatic sheet and the Profile row went. Background location now hangs off one named feature, demand alerts, which are push notifications about parking demand nearby. After a successful handoff, when the user has just parked, Home offers demand alerts. After that, Home shows an on and off toggle. Both appear only when foreground location is already granted.
Turning alerts on opens a separate background disclosure that names the feature and says location is collected while the app is closed. "Turn on" asks for Always, which on Android 11 and up means the Settings page. "No thanks" or back keeps alerts off.
Collect background location only while the feature is on
Asking properly is half of it; the app also has to collect only what it said it would. Alerts are on only when the user chose them and Always is granted. Location reporting, foreground and background, now runs only while alerts are on, because the stored position is used for nothing except targeting demand pushes.
On the backend, turning alerts off deletes the stored position through a new delete endpoint, so no push targets the user until they report again. Deleting when there is no stored row is a no-op, so the app can call it without checking first. I like this rule because it makes the disclosure text true by construction: if the feature is off, the data is gone.
Don't hide the only switch
Moving the control to Home created a new problem, which I fixed the next day. The toggle only appeared after the first handoff, so before that there was no way to turn background location on at all.
Profile got its switch back, always listed. It never asks on its own. A tap without permission walks the same path as Home: the location disclosure, then the demand-alerts disclosure, then Settings. That flow now lives in one mixin shared by the Home card and the Profile row, so the two entry points can't drift apart. Two entry points asking in their own ways is what the second rejection was about.
Does the same rule apply to iOS permission strings?
Apple's version of this is the purpose string in the system prompt itself, and it has to describe every use. In a B2B operations app, the camera and photo library strings only mentioned a profile picture, but the camera and library also take vehicle, inspection and work-stage photos. I rewrote the strings to describe every use.
If you are already fixing store review issues, the Flutter UIScene migration for iOS 27 is another one worth doing before a reviewer finds it. For permission flows I walk every branch on a real device, including "No thanks" and back, along the lines of end-to-end testing that found bugs in done tickets. An agent can help with the tapping, as in letting an AI agent test your Flutter app.
The short version
A Google Play prominent disclosure has to come right before the permission request, inside the app, with a real way to decline. Put every location prompt behind one function that shows the disclosure first, treats back and "Not now" as a no, opens Settings when the system has stopped asking, and never prompts from code that can't show a disclosure. Ask for background location only from a named feature the user turns on, with its own disclosure, and stop collecting and delete the data when they turn it off. Keep one shared flow for every entry point. If you do one thing today, search your app for every call that requests a permission and check what the user sees right before each one.
More of my mobile work is on the projects page.