medium · M6 · MASVS-PRIVACY-1 · PTKD-REVIEW-PLAY-FGS-GEOFENCING
Location foreground service used for geofencing
The app runs a foreground service of type location for geofencing. From 27 January 2027 Google Play no longer accepts geofencing as a use for a location foreground service: the foreground service declaration in Play Console that covers it today stops counting, and the update is rejected.
How it is exploited
Not an attack: a store app keeps a location foreground service running so it can notify users near a shop. Play is removing geofencing as an approved foreground service use, so from January 2027 the declaration no longer covers it and the update is rejected, while the user carries a permanent notification and battery drain for something the system does for free.
Why it matters
A rejected update from 27 January 2027, and a permanent location service where none is needed.
How to fix it
- Move the areas to the Geofence API: GeofencingClient.addGeofences with a PendingIntent to a broadcast receiver.
- Handle enter and exit events in the receiver or a WorkManager job, without startForeground.
- Remove the location foreground service, or keep it only for navigation or ride tracking and update the foreground service declaration in Play Console.
Does your app have this?
PTKD checks your build or your source project for PTKD-REVIEW-PLAY-FGS-GEOFENCING and every other check in this knowledge base.
Scan your appReferences
Related checks (M6)
- PII in a response over a cacheable/first-party channel
- Supabase view in the public schema exposes auth.users
- Ads start before the user's consent (text search)
- Device/user PII sent to a third party
- Google Play restricted or sensitive permission
- Privacy manifest has invalid keys or values
- Missing Apple privacy manifest (PrivacyInfo.xcprivacy)
- Required-reason API used without a declared reason