I modified my functions onDeviceReady() & scanForDevices() , but following
alert messages does not occurs :---
alert('test'); in handler onDeviceReady()
alert('test_1'); in following onclick event scanForDevices();
This means plugin is not detected by my cordova crosswalk app ?
---------------------- code -----
function onDeviceReady() {
alert("Device ready ..!!!");
if (typeof BC != "undefined") {
alert("GOT THERE");
}
else
{
alert('BC not defined');
}
BC = window.BC = cordova.require("org.bcsphere.bcjs");
alert('test');
}
function scanForDevices() {
alert("Scanning ..!!!");
BC.Bluetooth.StartScan();
alert('test_1');
}
-----------------------------------
On Wed, Dec 9, 2015 at 2:43 PM, Dinesh Guleria <[email protected]>
wrote:
> This plugin, i am using :---
> https://github.com/bcsphere/bluetooth
>
> Have someone used it before ?
>
> Regards,
> Dinesh
>
> On Wed, Dec 9, 2015 at 2:36 PM, Dinesh Guleria <[email protected]>
> wrote:
>
>> Hi,
>>
>>
>> Mobile model :--
>> HTC Desire 516
>>
>> I am trying to use bluetooth plugin inside my cordova crosswalk app.
>> Bluetooth apps :--
>> https://github.com/bcsphere/apps
>>
>> I am trying to search for available bluetooth devices, but nothing
>> happens, if i use this function. :--
>> BC.Bluetooth.StartScan()
>>
>> I have attached the attached html & js files. Please suggest how to use
>> this plugin ??
>>
>>
>> Please suggest how to use this plugin ?
>>
>> Regards,
>> Dinesh
>>
>
>
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help