PhoneGap的是适合我的选择吗? [英] Is PhoneGap the right choice for me?

查看:121
本文介绍了PhoneGap的是适合我的选择吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的PhoneGap,和我有几个问题:

I am new to PhoneGap, and I have several questions:

我需要一种方法来开发,将有的iOS,Android和其他平台兼容的应用程序。换句话说,我想写1的应用程序,并得到兼容版本不同的平台。

I need a way to develop an application that will have iOS, Android, and other platform compatibility. In other words, I want to write 1 app and get compatibility versions for different platforms.

通过阅读入门指南由PhoneGap的网站链接,我发现有不同程序的不同的平台。因此,有跨平台兼容的版本,我必须去一个接一个,改变所有的人,如果我做了修改,我的应用程序?

By reading the "Get Started" guide linked by the PhoneGap website, I found there are different procedures for different platforms. So to have compatibility versions across platforms, do I have to go one-by-one and change all of them if I make a modification to my app?

此外,到底是什么的PhoneGap构建?好像我能避免所有提到的麻烦previously折腾我的应用程序进入的PhoneGap构建?难道我真的没有做任何事情,除了编写应用程序?如果我需要更改?

Also, what exactly is PhoneGap Build? It seems like I can avoid all that hassle mentioned previously and toss my app into the PhoneGap Build? Do I really not have to do anything besides writing the app? What if I need to make changes?

最后,我读过的PhoneGap可以与HTML,CSS和JavaScript,而不是PHP。如果我的应用程序需要与服务器联系?可以PhoneGap的处理这个问题?

And finally, I've read that PhoneGap works with HTML, CSS, and Javascript, but not PHP. What if my app needs to contact a server? Can PhoneGap handle that?

感谢您对轴承所有这些问题!

Thank you for bearing with all these questions!

推荐答案

PhoneGap的你的应用程序中嵌入的WebView实现平台的兼容性。因此,你可以在HTML,CSS,JavaScript的运用的知识,并另外提供的方式与原生交互功能(如摄像头,GPS,...)。

PhoneGap achieves platform compatibility by embedding a webview within your application. Therefore you can apply your knowledge in HTML, CSS, JavaScript and it additionally provides ways to interact with native features (e.g. camera, gps, ...).

使用PhoneGap的,你写一个通用的Web应用程序,调整部分特定平台(有时你没有这个的话),并建立它的平台。后者可以与PhoneGap的处理构建服务:这需要你的web应用和捆绑它的移动操作系统在那里

With PhoneGap you write one general web app, tweak parts for the specific platform (sometimes you do not have to this at all) and build it for that platform. The latter can be handled with PhoneGap Build service: It takes your webapp and bundles it for the mobile operating systems out there (Embeds it within a Java app on Android, an Objective-C app on iOs)

PhoneGap的是能够与承载一个PHP脚本,就像所有其他Web应用程序的服务器进行通信。试图动态加载从远程站点的资源可以是一个相当麻烦,但这是另外一个问题。

PhoneGap is able to communicate with a server hosting a PHP script just as every other web application. Trying to dynamically load resources from remote sites can be quite a hassle but this is another question.

这篇关于PhoneGap的是适合我的选择吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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