cowbell / ionic-geofence

Ionic geofence app example
MIT License
180 stars 92 forks source link

Adding Geofences failed in Android #14

Closed nileshlg2003 closed 8 years ago

nileshlg2003 commented 9 years ago

I am getting this error on my android phone. I have installed all the plugins and setup correctly. Application runs well on Samsung s4 and get the push notifications aswell, but not on Sony. I can create geofence but not Push notification. So I checked the ADB logs, and it shows the error "Adding Geofences failed" Here's the ADB log

11-18 14:12:51.235 6556-6745/com.tsubik.ionicgeofence D/GeofencePlugin: GeofencePlugin execute action: addOrUpdate args: [{"id":"52ec0de2-6a73-4464-8afc-7396bb3496d5","latitude":23.6068435,"longitude":58.54160255,"radius":806,"transitionType":3,"notification":{"id":2,"title":"Ionic geofence example","text":"Hrhdhdhdhd","icon":"res:\/\/ic_menu_mylocation","openAppOnClick":true,"data":{"id":"52ec0de2-6a73-4464-8afc-7396bb3496d5","latitude":23.6068435,"longitude":58.54160255,"radius":806,"transitionType":3,"notification":{"id":2,"title":"Ionic geofence example","text":"Hrhdhdhdhd","icon":"res:\/\/ic_menu_mylocation","openAppOnClick":true}}}}]
11-18 14:12:51.303 6556-6745/com.tsubik.ionicgeofence D/GeofencePlugin: Connecting location client
11-18 14:12:51.306 6556-6745/com.tsubik.ionicgeofence W/PluginManager: THREAD WARNING: exec() call to GeofencePlugin.addOrUpdate blocked the main thread for 71ms. Plugin should use CordovaInterface.getThreadPool().
11-18 14:12:51.322 6556-6556/com.tsubik.ionicgeofence W/cr.BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 6556
11-18 14:12:51.324 6556-6556/com.tsubik.ionicgeofence D/GeofencePlugin: Google play services connected
11-18 14:12:51.324 6556-6556/com.tsubik.ionicgeofence D/GeofencePlugin: Adding new geofences
11-18 14:12:51.330 6556-6556/com.tsubik.ionicgeofence D/GeofencePlugin: Adding geofences failed
tsubik commented 8 years ago

Yes, this error handling sucks, but I will update Java code to get rid of some deprecations. Anyway, I'm closing this, if you still have some problems with that, please feel free to reopen.