Android max limit for geofences?

試著忘記壹切 提交于 2019-12-06 19:54:54

问题


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?


回答1:


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




回答2:


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

Adding more than 100 geofences




回答3:


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.



来源:https://stackoverflow.com/questions/18920407/android-max-limit-for-geofences

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!