I am working on a project in Titanium Alloy. I need to use the Beacon module to scan for beacons using BLE. My problem is that i can't get the module to work.
I used the Install mobile module to install the module and i enabled it in the tiapp.xml file.
This is the code i have at the moment:
var Beacons = require('com.logicallabs.beacons');
function doClick(beacon) {
if(Beacons.BeaconsModule.isEnabled()){
alert('succes');
}else{
alert("suces");
}
}
$.index.open();
The function gets launched when you click a label. The module contains 3 classes. Do you have to specify wich method from which class you have to use?
Also when i start this program i get errors saying Could not find class 'android.bluetooth.BluetoothManager and Could not find class 'com.logicallabs.beacons.ScanService$2