cowbell / cordova-plugin-geofence

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

Function not being calling when transition happening #170

Open leoboyanurag opened 7 years ago

leoboyanurag commented 7 years ago

I am not able to call any function inside onTransitionReceived, I want to call a API to send SMS. getting correct notification for both transition, entry and exit, but not able to call API. window.geofence.onTransitionReceived = function (geofences) { geofences.forEach(function (geo) { //console.log('Geofence transition detected', geo); //alert(JSON.stringify(geo)); CallSmsAPI("Geofence transition detected",drivermobile); }); };