Hello all, am working with beacons in ionic 2 and am unable to make a call for any delegate functions. Am passing my device UUID to get the beacon region but nothing is showing up. The following is my code.
let locationManager = window.cordova.plugins.locationManager;
var region = locationManager.BeaconRegion("Ionic_beacon", uuid);
alert(region);
locationManager.enableBluetooth();
let delegate = new locationManager.Delegate();
delegate.didDetermineStateForRegion = function (pluginResult) {
alert('in delaget');
alert('[DOM] didDetermineStateForRegion: ' + JSON.stringify(pluginResult));
locationManager.appendToDeviceLog('[DOM] didDetermineStateForRegion: '
+ JSON.stringify(pluginResult));
};
Am trying to get the region, bluetooth is enabling but, it is not entering ‘delegate.didDetermineStateForRegion’ function. My UUID is something like ‘d367gdheyr…hj’ and platform is android. Any help please.