本文介绍了使用移动开发框架(如PhoneGap还是Appcelerator)构建的Facebook应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现 引用Facebook应用程序作为混合应用程序的示例。



我理解术语混合应用程序被广泛地定义为任何智能手机应用程序,将WebView包装在本地



有手机(PhoneGap,Appcelerator等),使开发人员可以使用其现有的网络开发技能(HTML5,Javascript,CSS)构建应用程序,同时提供访问核心手机功能(摄像头,通讯录等)。

因此,由于Facebook是一个混合应用程序,可以访问手机的核心功能,如推送通知和相机我很好奇:



是个使用移动开发框架构建的Facebook应用程序?

解决方案

您对混合应用程序的广泛定义可能有点太广泛。在一个网络视图中运行的整个应用程序对于混合应用来说是一个充足但不是必需的条件。



您可能会将其视为频谱:

 
纯本地Facebook Appcelerator PhoneGap HTML5
| --------------- | --------- ----- | ------------- | ----------- |

例如,PhoneGap应用程序正如您所提到的:在本机应用程序中包装WebView的应用程序。然而,Appcelerator应用程序也是混合应用程序,但它们并不一定需要包含一个webview组件。他们是混合的,因为他们的UI是原生的,但部分逻辑运行在Javascript上。



Facebook绝对不是在PhoneGap中构建的。在HTML5中创建其滑动菜单,而不会出现任何性能下降。有迹象表明,Facebook还没有建立在Appcelerator中。根据我的经验,Appcelerator应用程序倾向于具有巨大的文件大小,因为包含的Titanium库。 Facebook应该比当前的大小要大一些,如果它是建立在Appcelerator中。



Facebook拥有自己的本地应用程序的资源,因此不需要通常的原因(开发速度,编码容易)的框架。



最后,也许最好的原因我会说Facebook不是使用(公开可用)框架是,如果是,该框架将是1)高兴地向世界宣布,或2)由Facebook购买。


I've found numerous sources that cite the Facebook app as an example of a Hybrid App.

I understand the term Hybrid App is broadly defined as any smartphone app that wraps a WebView in a native application.

There are mobile phone development frameworks (PhoneGap, Appcelerator, etc) that enable developers to build apps using their existing web dev skills (HTML5, Javascript, CSS) while providing access to core phone features (camera, address book, etc).

Therefore, since Facebook is a hybrid app that accesses the phone's core features like Push Notifications and camera I'm curious:

Is the Facebook app built using a mobile development framework?

解决方案

Your broad definition of a hybrid app might be a little too broad. An entire app running in a webview is a sufficient but not necessary condition for a hybrid app.

You might imagine this as a spectrum:

Pure native      Facebook      Appcelerator    PhoneGap     HTML5
     |---------------|--------------|-------------|-----------|

PhoneGap apps, for example, are as you mentioned: "apps that wrap a WebView in a native application." However, Appcelerator apps are also hybrid apps, yet they do not necessarily need to contain a webview component. They are hybrid because their UI are native, yet parts of their logic runs on Javascript.

Facebook is definitely not built in PhoneGap. Creating its sliding menu in HTML5 without any performance hitches is close to impossible with current webviews. There are telltale signs that Facebook is not built in Appcelerator either. In my experience, Appcelerator apps tend to have huge file sizes because of the Titanium libraries that are included. Facebook should be a lot bigger than its current size if it were built in Appcelerator.

Facebook has the resources to build its own native apps, so it doesn't require a framework for the usual reasons (development speed, ease of coding).

Lastly, and perhaps the best reason I would say Facebook isn't built using a (publicly available) framework is that if it were, that framework would be either 1) happily announcing it to the world, or 2) bought over by Facebook.

这篇关于使用移动开发框架(如PhoneGap还是Appcelerator)构建的Facebook应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 15:29