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); }); };
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); }); };