PhoneGap的VS原生的iOS / 2014年Android开发VS、PhoneGap、iOS、Android

2023-09-06 01:44:02 作者:旧城半夏

我是一个web开发的是新的移动应用程序的开发,需要尽快启动项目。尽管在过去的几个星期研究,(我列出我所在这篇文章底部迄今所做的)我还没有的PhoneGap或本机(适用于iOS / Android的唯一)的决定。谷歌搜索的PhoneGap VS本土之类的似乎给了一个相当甚至分裂的结果,但毫无疑问,本机将提供一个更快/更好的最终结果似乎,但不必学习很多新的东西在很短的代价时间表。

I'm a web developer that is new to mobile app development and need to start a project asap. Despite researching for the last few weeks, (I have listed what I've done so far at the bottom of this post) I still have not decided between Phonegap or native (for iOS/Android only). Googling "Phonegap vs native" and the like seems to give results with a fairly even split, but there seems no doubt that native will give a faster / better end result, but at the expense of having to learn so many new things in a short timeframe.

一个平常的事援引有关PhoneGap的是运行速度很慢 - 但我也看到,由于V3现在运行得更快? - 是本该如此

One common thing cited about Phonegap is that is runs slowly – but I have also read that since V3 it now runs much faster – is this the case?

该应用程序我需要建立确实是pretty的就像一个移动的静态网站(但客户坚持它必须是一个应用程序) - 只是文本和一些图像和一些PDF文件。将会有新的内容加入,如新闻,所以我想,而不是发布一个新的应用程序版本,每一个新项目,该应用程序将获取从Web API新的数据(JSON或XML),最后推送通知的要求。

The app I need to build is really pretty much like a mobile static site (but the customer insists it must be an app) – just text and a few images and some PDFs. There will be new content added like news, so I was thinking rather than release a new app version for each new item, the app will fetch new data from a web API (JSON or XML) and finally a requirement for push notifications.

将不会有必要访问摄像机,GPS或任何其他硬件(BAR文件系统缓存图像/ PDF文件)。

There will be no need to access the camera, GPS or any other hardware (bar the file system to cache images/PDFs).

我看过类似的应用程序(的比赛),他们似乎都广泛使用的网络意见,这可能表明他们与PhoneGap的发言(或不是吗?)。

I've looked at similar apps (the competition) and they all appear to make extensive use of web views, which might suggest they were made with Phonegap (or would it?).

所以我的问题是,由于简单类型的应用程序,我需要做的,会有在去原生这个一个很大的好处,或将PhoneGap的(最新版)很好的工作。或者在另一方面,因为它是一个简单的应用程序,会是容易做到的(即从零到两个应用程序商店中的10周)在本地?

So my question is, given the simple type of app I need to do, would there be a big benefit in going native for this, or would Phonegap (latest version) work just as well. Or on the other hand, since it is a simple app, would it be easy to do (i.e. from zero to both app stores in 10 weeks) in native?

我有安装ADT / X code一个苹果,这样是不是在选择的一个因素。

I do have a mac with ADT/Xcode installed so that is not a factor in the choice.

我的研究至今。

其次是Android入门到这里http://developer.android.com/training/basics/actionbar/styling.html但迷路的标签

Followed the Android getting started to here http://developer.android.com/training/basics/actionbar/styling.html but got lost with the tabs

然后得到一本书,将由Sams Android在24小时后,在约6小时。

Then got a book, SAMS teach yourself android in 24 hours, on about hour 6

随后的iOS到这里https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/ThirdTutorial.html#//apple_ref/doc/uid/TP40011343-CH10-SW1

若干PhoneGap的教程,如 http://coenraets.org/blog/phonegap-tutorial/ 但一切似乎都有问题让他们工作作为为。

Several Phonegap tutorials such as http://coenraets.org/blog/phonegap-tutorial/ but all seemed to have issues getting them to work as is.

推荐答案

显然,当地有一定的好处对像的PhoneGap的web框架。但事实是,你要与功放的东西;需要?如果你想有一个快速的解决方案,然后PhoneGap的是最好的跨平台。你可以做到这一点在简单的方式为所有的通用平台。但是,如果你希望你的应用程序,以快速和放大器;当然,高效,天然有它的好处。

Clearly native has some benefits over the web frameworks like phonegap. But the thing is what you want & need? If you want a quick solution then phonegap is best for cross platform. You can do it in easy way for all common platforms. But if you want your app to be fast & efficient, of course native has it's benefits.

鉴于您的要求,的PhoneGap可以更好地服务于你的目的。您可以继续使用相同的code,并适用于所有平台完全相同的设计。不仅适用于iOS和Android,而且随着Windows Phone,亚马逊fireos等。

Given your requirements, phonegap could be better to serve your purpose. You can continue with same code, and exact same design for all platforms. Not only for ios and android, but also with windows phone, amazon fireos etc.

一的事情是,有成千上万的应用程序建立在PhoneGap的这些日子里,所以可以说,它以期望在一定程度上满足。 PhoneGap的是足够的效率,以填补这些应用程序条款。适当的使用像煎茶,jQuery Mobile的,剑道的UI,还有更多的PhoneGap框架,可进行高效。

One of the thing is that there are thousands of app building in phonegap these days, so it can be told that it meets with the expectation to a certain extent. Phonegap is efficient enough to fill these apps' terms. With proper use of frameworks like sencha, jquery mobile, kendo UI and many more phonegap can be highly efficient.

我不认为这是每个人都能告诉你,如果该应用程序可以在10周内在本地应用或无法完成。我会去的PhoneGap继续与相同的设计和相同的code。这将是容易的,如果需要在未来做出改变的应用程序。但决定已经被你的基础上,问题和要求:)

I don't think it's possible for anyone to tell you that if the app could be completed in 10 weeks in native apps or not. I would go for phonegap to continue with same design and same code. It would be easy to make change in the app if needed in future. But decision have to be yours based on the issues and requirements :)