你可以使用NG-科尔多瓦与PhoneGap的建设服务? [英] Can you used ng-Cordova with the PhoneGap Build service?

查看:480
本文介绍了你可以使用NG-科尔多瓦与PhoneGap的建设服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立使用离子框架库(包括角JS)混合移动应用程序,并发现他们已经做了一个包装为一些科尔多瓦插件,以便与角工作。

I am building a hybrid mobile app using the Ionic Framework library (including Angular JS) and have found that they've made a wrapper for a number of the cordova plugins so that they work with Angular.

我已经下载了NG-cordova.js文件,并引用它在我的index.html

I have downloaded the ng-cordova.js file and referenced it in my index.html

由于作为测试,我已经使用了科尔多瓦的设备插件,只是为了显示在弹出的设备名称。它工作正常的波动模拟器刚刚运行的HTML浏览器,但是当我使用的PhoneGap构建它不再工作构建应用程序。

As as test I have used the cordova device plugin just to display the device name in a popup. It works fine in the ripple emulator just running the html in my browser, however when I build the app using Phonegap Build it no longer works.

这难道不是可以使用NG-cordova.js文件来访问本地设备功能使用的PhoneGap构建什么时候? (即你能字面上只能从构建网站的列表中使用的插件吗?)

Is it not possible to use the ng-cordova.js file to access native device features when using Phonegap Build? (i.e. Can you literally only use the plugins from the list on the build website?)

推荐答案

作为的PhoneGap构建另一个用户,您被限制到任何插件可以在这里找到:

As another user of PhoneGap Build, you are limited to whatever plugins can be found here:

https://build.phonegap.com/plugins

话虽这么说,如果插件是不是在他们的资源库已经(大部分流行的是),你可以自己随时提交,或试图让笔者提交。

That being said, if the plugin is not in their repository already (most of the popular ones are), you can always submit it yourself or try to get the author to submit it.

除此之外,它应该很好地工作。

Other than that, it should work fine.

这篇关于你可以使用NG-科尔多瓦与PhoneGap的建设服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆