how to run cordova-plugin-chrome-apps-bluetooth on cordova -


i have cordova app plugins cordova-plugin-chrome-apps-bluetooth , cordova-plugin-chrome-apps-common

cordova plugin add cordova-plugin-chrome-apps-bluetooth cordova plugin add cordova-plugin-chrome-apps-common 

i'm trying read result of chrome.bluetooth.getadapterstate()

app.scan = function () {     console.log("app.scan()");     var res = chrome.bluetooth.getadapterstate( function(  adapterinfo )  {             console.log("callback");             console.log("adapterinfo");         }     ); }; 

in index.html :

<button on-click="app.scan()" >scan</button> 

in chrome js console, can see app.scan() callback never shows up.

is plugin should work in cordova ? or may missing something?

try installing plugin "cordova-plugin-android-support-v4", worked me. being discussed in thread: https://github.com/mobilechromeapps/cordova-plugin-chrome-apps-bluetooth/issues/3#issuecomment-144164329


Comments