cowbell / cordova-plugin-geofence

Geofencing plugin for cordova
Apache License 2.0
265 stars 317 forks source link

onTransitionReceived #205

Open rcastera opened 7 years ago

rcastera commented 7 years ago

Does this fire upon entering the fence? It's not clear in the documentation.

Alexintosh commented 7 years ago

I was wondering the same

tsubik commented 7 years ago

Yes, check out example applications. It may not work if your app is in the background, but this is well-known problem of Cordova applications. The most reliable way to execute custom code if app is in background is only native code https://github.com/cowbell/cordova-plugin-geofence#listening-for-geofence-transitions-in-native-code.