cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
264 stars 318 forks source link

geofences not added kCLErrorDomain #186

Closed Gerald1985 closed 7 years ago

Gerald1985 commented 7 years ago

Would you please let me know if this issue is supported? AddOrUpdate method is returning KCLErrorDomain code=5

2016-10-27 22:24:44.260387 xxxxxx[529:67449] GeofencePlugin - AddOrUpdate geo: { "transitionType" : 1, "notification" : { "id" : 26597316298968, "title" : "SBARRO", "smallIcon" : "res:\/\/icon", "icon" : "file:\/\/img\/geofence_icon.png", "openAppOnClick" : true, "text" : "Sbarro" }, "id" : "0-SBARRO-19", "radius" : 300, "longitude" : -86.249033, "latitude" : 12.103899 } 2016-10-27 22:24:44.286321 xxxxxx[529:67423] GeofencePlugin - Monitoring region 0-SBARRO-19 failed Error Domain=kCLErrorDomain Code=5 "(null)"

Am I missing something? why geos are not added to Monitoring task.

marvi14 commented 7 years ago

http://stackoverflow.com/questions/17733875/corelocation-kclerrordomain-error-5

kCLErrorDomain code/error of 5 denotes that you have tried to monitor more than 20 CLRegions. In my case, both subclasses were guilty of monitoring more than 20 regions.

tsubik commented 7 years ago

Check limitations of this plugin, that could be the reason as @marvi14 mentioned, no more than 20 regions is allowed for iOS.