cowbell / cordova-plugin-geofence

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

silent onTransitionReceived #187

Open fnokeke opened 7 years ago

fnokeke commented 7 years ago

Is there a way to disable the notification from firing in the app (similar to how you disable vibration). I'd like to capture the transition state & silently log to a server without showing app notification for entry/exit of geofence.

I've tried different to remove the notification field in a geofence (geofence.notification) but this throws an error in addOrUpdate( ). Any pointers on how to disable notification will be helpful. Thanks.

Sohib commented 7 years ago

putting geofence.notification = null worked for me