科尔多瓦需要一个插件
问题描述:
我加入这个插件https://github.com/bcsphere/bluetooth到我的应用程序:科尔多瓦需要一个插件
phonegap plugin add https://github.com/bcsphere/bluetooth.git
我下面的教程: https://github.com/bcsphere/tutorial/blob/master/chapter01/js/index.js#L17
据我所知,该插件的WWW文件夹将合并我的应用程序的www文件夹?那我怎么正确导入模块,因为
var BC = window.BC = cordova.require("org.bcsphere.bcjs");
导致以下错误:
file:///data/data/com.adobe.phonegap.app/files/files/phonegapdevapp/www/cordova.js:59
Uncaught module org.bcsphere.bcjs not found
如果你看看这个插件的WWW文件夹https://github.com/bcsphere/bluetooth/tree/master/www你可以看到所有可用的模块。我需要主:https://github.com/bcsphere/bluetooth/blob/master/www/org.bcsphere/bc.js
编辑
我也试过org.bcsphere.bc.js
,org.bcsphere.bc
org.bcsphere/bc.js
答
所以我不完全相信,因为我不能尝试,但在逻辑上认为它是
org.bcsphere/bc.js
对不对?
是的,但它会产生相同的错误:“未找到未捕获的模块org.bcsphere/bc.js” – user1930254