Add more than 20 regions to geofencing ios

老子叫甜甜 提交于 2019-11-30 08:50:23

问题


I want to add 100 of regions to geofencing.(apple limit it to 20)any one have better idea for it.please help me.

currently im using significant location change.when significant location change,

- (void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation

method i call API with current location and get the nearest region set and add into geofencing.This method works.But i heard from web significant location change fire depend on the cell towers.If there less cell towers then it will be problem.Other thing is when calling api in background it will be effect to the battery.

来源:https://stackoverflow.com/questions/22297995/add-more-than-20-regions-to-geofencing-ios

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