ios - How to add more than 20 geofenced local notifications? -
i creating app using following code trigger local notifications based on location:
let locattionnotification = uilocalnotification() locattionnotification.alertbody = "you have entered high risk zone (crown range road) , proceed caution" locattionnotification.regiontriggersonce = false locattionnotification.region = clcircularregion(circularregionwithcenter: cllocationcoordinate2d(latitude: 37.33182, longitude: -122.03118), radius: 100.0, identifier: "location1") uiapplication.sharedapplication().schedulelocalnotification(locattionnotification)
this code works fine 20 alert messages thats limit in ios.
i more i'm not sure how can go it.
i hear can detect when significant location change made , work out distance nearest points , enable those.
can provide me advice and/or code how can work out distance these various points , enable relevant ones?
check answer similar question:
need add more 20 geofence regions
should you. let me know if makes sense.
Comments
Post a Comment