android / location-samples

Multiple samples showing the best practices in location APIs on Android.
Apache License 2.0
2.71k stars 2.77k forks source link

GEOFENCE_TOO_MANY_PENDING_INTENTS, GMS officially useless, 5 limit #33

Open henrik-lindqvist opened 8 years ago

henrik-lindqvist commented 8 years ago

Please remove the ridiculously low limit of max 5 geofences when using the PendingIntent method. Geofencing in GMS has, a reasonable, limit of 100 geofences, why restrict the use of the more background service friendly PendingIntent method to only 5, it should be 100 as well.

We can no longer justify using the Google Play Services location API, there's just too many issues, even if it claims to be more accurate and battery friendly. Reverting back to the proximity alarm API.

shailen commented 8 years ago

@henrik-lindqvist I will convey your concerns to the eng team.

sxlhero commented 6 years ago

@shailen So..... what's the final solution? https://developers.google.com/android/reference/com/google/android/gms/location/GeofenceStatusCodes.html#GEOFENCE_TOO_MANY_PENDING_INTENTS "You have provided more than 5 different PendingIntents to the addGeofences(GoogleApiClient, GeofencingRequest, PendingIntent) call."

Is it meaningful in the Google Play Services location API latest version?