evothings / cordova-eddystone

Cordova/PhoneGap plugin for Eddystone beacons
Apache License 2.0
57 stars 35 forks source link

Don't scan for specific device. #13

Open luantoni opened 8 years ago

luantoni commented 8 years ago

I'm using: function startScan() { showMessage('Scan in progress.'); evothings.eddystone.startScan( ['XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX'], function(beacon) { // Update beacon data. beacon.timeStamp = Date.now(); beacons[beacon.address] = beacon; }, function(error) { showMessage('Eddystone scan error: ' + error); }); } But it doesn't works, returning this error: Error in Success callbackId: BLEXXXX : TypeError: win is not a function Uncaught TypeError: win is not a function

What am I doing wrong?