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

    1. Move the areas to the Geofence API: GeofencingClient.addGeofences with a PendingIntent to a broadcast receiver.
    2. Handle enter and exit events in the receiver or a WorkManager job, without startForeground.
    3. 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 app

    References

    Related checks (M6)