Problem Scan Beacon Eddystone


#1

Hy all, I bought blue beacons and i would like to make a hybrid app with ionic creator but i found problems in the beacon scan with the ionic creator framework.
The app crashes when I go to call Eddystone’s Liberia:

$scope.start = function(){
        alert("Hello");
        $cordovaEddystone.evothings.eddystone.startScan(
            function(device){
                alert("primo");
                console.log('startScan found device named: ' + device.name);
            },
            function(errorCode){
                console.log('startScan error: ' + errorCode);
            }
        );
    }
}