Facebook 应用程序是使用 PhoneGap 或 Appcelerator 等移动开发框架构建的吗? [英] Is the Facebook app built using a mobile development framework like PhoneGap or Appcelerator?

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

问题描述

我发现 众多 来源 引用 Facebook 应用程序作为混合应用程序的示例.

我理解混合应用程序"一词的广义定义是将 WebView 包装在本机应用程序中的任何智能手机应用程序.

有手机开发框架(PhoneGap、Appcelerator 等)使开发人员能够使用他们现有的网络开发技能(HTML5、Javascript、CSS)构建应用,同时提供对手机核心功能(相机、地址簿等)的访问.

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

Facebook 应用是否使用移动开发框架构建?

解决方案

您对混合应用的宽泛定义可能有点过于宽泛.整个应用在 webview 中运行是混合应用的充分但非必要条件.

你可以把它想象成一个频谱:

<前>纯原生 Facebook Appcelerator PhoneGap HTML5|---------------|--------------|-------------|-----------|

例如,PhoneGap 应用程序就像您提到的:将 WebView 包装在本机应用程序中的应用程序".但是,Appcelerator 应用程序也是混合应用程序,但它们不一定需要包含 webview 组件.它们是混合的,因为它们的 UI 是原生的,但它们的部分逻辑在 Javascript 上运行.

Facebook 绝对不是内置在 PhoneGap 中的.使用当前的 webview 几乎不可能在 HTML5 中创建它的滑动菜单而没有任何性能问题.有迹象表明 Facebook 也不是内置于 Appcelerator 中的.根据我的经验,由于包含的 Titanium 库,Appcelerator 应用程序往往具有巨大的文件大小.如果 Facebook 是在 Appcelerator 中构建的,它应该比它目前的规模大得多.

Facebook 拥有构建自己的原生应用的资源,因此出于通常的原因(开发速度、易于编码),它不需要框架.

最后,也许我要说 Facebook 不是使用(公开可用的)框架构建的最好理由是,如果是这样,那么该框架要么是 1) 高兴地向全世界宣布它,要么 2) 被收购来自脸书.

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.

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

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