cowbell / cordova-plugin-geofence

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

cordova-plugin-geofence keep crashing #278

Open netwrkx opened 6 years ago

netwrkx commented 6 years ago

AndroidRuntime: java.lang.IllegalArgumentException: Non-negative loitering delay needs to be set when transition types include GEOFENCE_TRANSITION_DWELLING.

i get this error everytime myapp execute

this.geofence.addOrUpdate(fence)
.then((result) => {
});
05-28 14:59:08.443  2739  3415 E AndroidRuntime: java.lang.IllegalArgumentException: Non-negative loitering delay needs to be set when transition types include GEOFENCE_TRANSITION_DWELLING.
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at com.google.android.gms.location.Geofence$Builder.build(Unknown Source)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at com.cowbell.cordova.geofence.GeoNotification.toGeofence(GeoNotification.java:19)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at com.cowbell.cordova.geofence.GeoNotificationManager.addGeoNotifications(GeoNotificationManager.java73)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at com.cowbell.cordova.geofence.GeofencePlugin$1.run(GeofencePlugin.java:80)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:        
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
05-28 14:59:08.443  2739  3415 E AndroidRuntime:      at java.lang.Thread.run(Thread.java:818)