Cordova 将Meteor与PhonegapBuild一起使用

Cordova 将Meteor与PhonegapBuild一起使用,cordova,meteor,phonegap-build,Cordova,Meteor,Phonegap Build,我已经使用phonegapbuild服务成功构建了一个android apk,该服务指向我的Meteor URL,我尝试了两种方法,它们都有效: - Setting 'content in config.xml (<content src="http://MyIP:3000/" />) - Using window.location = "http://MyIP:3000/" in index.html -在config.xml()中设置“内容” -使用window.locati

我已经使用phonegapbuild服务成功构建了一个android apk,该服务指向我的Meteor URL,我尝试了两种方法,它们都有效:

- Setting 'content in config.xml (<content src="http://MyIP:3000/" />)
- Using window.location = "http://MyIP:3000/"  in index.html
-在config.xml()中设置“内容”
-使用window.location=”http://MyIP:3000/“在index.html中

因此,现在我的Meteor应用程序在手机上运行良好,但我不知道如何访问Phonegap api ie。我不知道如何包含Phonegap位。我看到有人提到使用AppCache,但我不认为这与问题有什么关系。

必须从
index.html
调用Cordova API,一旦您执行
window.location=WEB\u URL
,它将位于不同的域中,您无法从运行在webview中的远程网站访问phonegap设备功能。

是否意味着无法将Meteor与PhonegapBuild一起使用,也无法访问Meteor代码中的PG api?从网站访问设备api的方法很复杂,但无法使用phonegap build,Intel XDK提供了类似phonegap的api,它有一个从子浏览器到mainview执行JS的API,您可以在子浏览器中加载meteor应用程序,在mainview(index.html)中使用phonegap方法,在meteor应用程序中使用XDK API
mainViewExecute
,进行phonegap API调用。“复杂方式”是指使用MeteorRider或类似软件,然后在本地构建自己的PhoneGap应用程序?在XDK上,您是否有关于使用Meteor的链接?谷歌提供了大量的meteor phonegap结果,但meteor xdk却一无所获