문제

I'm starting with the geo fencing API of google play services. I think I understood the general concept but I couldn't find out if there's a limit for geofences. I give my list of geofences to the the location client and he handles the rest. But how many geofences can I pass to the location client? As many as I want?

도움이 되었습니까?

해결책

You get 100 geofences per app per device

You can have multiple active geofences, with a limit of 100 per device user. For each geofence, you can ask Location Services to send you entrance and exit events, or you can specify a duration within the geofence area to wait, or dwell, before triggering an event. You can limit the duration of any geofence by specifying an expiration duration in milliseconds. After the geofence expires, Location Services automatically removes it.

https://developer.android.com/training/location/geofencing.html

they tell you in the google IO session called Beyond the Blue Dot: New Features in Android Location

다른 팁

Official docs:

You can have multiple active geofences, with a limit of 100 per device user.

Thus if a device has > 1 user then there can be more than 100 geofences on the device.

You can handle more than 100 geofences if you wish too, by taking the approach in this answer:

Adding more than 100 geofences

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top