I need to find nearest beacon based on distance between device and beacons supported on both Android as well as IOS. I have found Estimote Beacon sample application meeting my requirement a bit (https://github.com/evothings/phonegap-estimotebeacons) but is supporting ranging on IOS device only . Although its clearly mentioned on its official document that it support android and IOS both .. I am unable to run the sample application (Estimote Beacon) for android.
Please help me if I am missing anything? Reply me asap, waiting for your reply!


I have added region array as follows (which is working for IOS):
var regionArr = [
{ uuid:'146A5E70-392B-4513-B818-D71A0BFE4165',
major: 28,
minor: 24222,
identifier: "myregion"
},
{ uuid:'140d5A70-392B-4513-B818-D71A0BFE4165',
major: 27,
minor: 36908,
identifier: "myregion2"
},
{
uuid:'7C7CBA19-4FE6-4A3B-848C-49300C16632D',
major: 12,
minor: 20588,
identifier: "myregion3"
}
];
Inside startScan function :
for (var i in regionArr)
{
// Start ranging beacons.
estimote.beacons.startRangingBeaconsInRegion(regionArr[i],
// Empty region matches all beacons
// with the Estimote factory set UUID.
onBeaconsRanged,
onError);
}
Thanks,
Aradhana