`
jinvasshole
  • 浏览: 763960 次
文章分类
社区版块
存档分类
最新评论

Titanium, PhoneGap, Sencha Touch, jQuery Mobile – Clearing up confusion

 
阅读更多

There’s a lot of buzz with the new mobile web frameworks and mobile platforms. There’s also a lot of confusion and vague terms being thrown around that are causing people to misunderstand what each of these tools do. I hope to clear up some of the confusion with a few brief points.

A mobile web app is not the same as a mobile native app

A lot of people think that Titanium and PhoneGap are in competition with Sencha Touch and jQuery Mobile. They aren’t the same thing. I’m sure I’m going to get some comments on this but think of a mobile web app as a website. Think of it as Basecamphq.com or Twitter.com. A mobile web app runs in your browser. Almost all of the app’s resources are remote, stored on some server somewhere. Sure there might be some local storage happening but at the end of the day it’s a website application.

A native app runs on your device. All of it’s resources are installed locally on your machine. A native app uses platform and language specific API’s native to that device. You can’t run NSString in a mobile web app. A native app has access to local resources while a mobile web app cannot.

“So what’s the difference between what’s out there?” Here’s the difference:

Sencha Touch and jQuery Mobile

These are mobile web frameworks. You can use these technologies to create web-based, mobile apps. They don’t have access to any native API’s. Both of these projects run in javascript. Both projects have totally separate ways of tackling similar problems but they are similar in that they are for the mobile web.

You can use Sencha Touch and jQuery Mobile inside both PhoneGap and Titanium. If you decide your html/js is cool as a native app too, you can use either PhoneGap or Titanium to wrap a browser around your app and put it in the app store or marketplace. This is where, I think, the confusion comes. Putting your Sencha Touch or jQuery Mobile apps in a native wrapper doesn’t make it a native app. It makes it appear as if it is a native app. You might get some extra functionality from PhoneGap or Titanium API’s, but it’s still not necessarily a ‘native’ app. It’s a web app running locally on the device. It’s a great way to use web technologies inside a native-like area.

PhoneGap and Titanium

PhoneGap and Titanium are not similar to Sencha Touch and jQuery Mobile. In fact, I would go as far and say that PhoneGap and Titanium aren’t all that similar. Both allow you to distribute native or native-like apps. Both don’t need to “build support” for Sencha Touch or jQuery Mobile. Why? Because the devices they support come with browsers. Remember, Sencha Touch and jQuery Mobile run in the browser. Since both PhoneGap and Titanium allow you to run things in a given device’s browser, they already have support for Sencha Touch and jQuery Mobile.

The biggest difference with PhoneGap and Titanium is what they offer. PhoneGap serves as a wrapper for the browser. It appears as if it’s a native app but it’s really an html/javascript app. Titanium can do the exact same thing via “webViews” but Titanium takes it a step further by offering a slew of native APIs for Cocoa Touch outside the browser. The two apps I have in the app store are 95% non-web based.

In Titanium you code in javascript, using Titanium’s unique API. The end result, at the app’s runtime, is native performance, native UI’s, etc. In simplest terms: You code in javascript and it ends up being Objective-C (in the case of iOS apps).

I’m still skeptical of the “end of native” chant going around. After building apps for the browser and for the device I think that there is a lot of room for both to still exist together. Understanding the differences of the technologies out there will help clear that up.

http://beautyindesign.com/blog/titanium-phonegap-sencha-touch-jquery-mobile-clearing-up-confusion/

http://mobile.51cto.com/hot-274040.htm

分享到:
评论

相关推荐

    jQuery Mobile

    you either have to write it in multiple languages (resulting in multiple code bases to maintain) or use a platform abstraction layer like Titanium or PhoneGap. Mobile web applications, on the other ...

    jquery-mobile-square-ui-theme:jQuery Mobile Square UI主题

    当前分支布局大师-jQuery Mobile 1.4版-当前正在进行中,尚未准备好生产jqm-1.3.1-jQuery Mobile版本1.3.1 jqm-1.3.0-jQuery Mobile版本1.3.0用法将jquery.mobile.square.css ,字体和图像从generated文件夹复制到您...

    Titanium Mobile API

    Titanium官方移动终端开发API文档

    Titanium Mobile 书籍推荐

    NULL 博文链接:https://rensanning.iteye.com/blog/1315014

    Android-titanium_mobile.zip

    Android-titanium_mobile.zip,带有javascript的本地ios、android和windows应用程序,安卓系统是谷歌在2008年设计和制造的。操作系统主要写在爪哇,C和C 的核心组件。它是在linux内核之上构建的,具有安全性优势。

    TiInspector, 通过 Chrome DevTools调试 Titanium Mobile 应用程序.zip

    TiInspector, 通过 Chrome DevTools调试 Titanium Mobile 应用程序 #Ti 检查器Ti检查器允许在 Chrome DevTools web界面中调试 Appcelerator Titanium 应用程序。工具通过将命令和消息转换为 Chrome 调试协议和 ...

    Building Mobile Applications with Titanium

    Building Mobile Applications with Titanium, 这是mobi版,适合knidle等电子书阅读。 详细介绍了titanium框架的使用

    Titanium Mobile API 1.8.2.chm

    Titanium Mobile API 1.8.2.chm 内容很好但是英文版的,E不好的童鞋慎下

    [Titanium] Appcelerator Titanium 移动应用开发教程 (英文版)

    [Packt Publishing] Creating Mobile Apps with Appcelerator Titanium (E-Book) ☆ 图书概要:☆ Develop fully-featured mobile applications using a hands-on approach, and get inspired to develop more ...

    TiJSPDF, Titanium Mobile 应用程序的JSPDF插件.zip

    TiJSPDF, Titanium Mobile 应用程序的JSPDF插件 TiJSPDFTiJSPDF是用于使用JSPDF库生成pdf并在 Titanium Mobile 应用程序中操作它们的Titanium Mobile 应用程序的一种 JSPDF插件插件。这个插件独立于 Titanium 维护,...

    titanium_mobile_tizen

    适用于 Tizen 的 Titanium Mobile 欢迎来到 Appcelerator Titanium Mobile 开源项目。 Titanium 为 Web 开发人员提供了一个使用 JavaScript 构建跨平台原生移动应用程序的平台。 有关 Titanium 的更多信息,请访问 ...

    Dash for Mac 2.0.2 文档查看神器 破解版

    Dash 是Mac下非常方便的文档查看器,一体化集成了许多常用的文档,但是不内购它的完整版...Dash Lua Marionette.js Meteor MongoDB Mongoose Mono MooTools MySQL Nginx Node.js OCaml OpenCV OpenGL Perl PhoneGap ...

    Titanium Mobile SDK 3.1.0 Apidoc 离线版

    Titanium Mobile SDK 3.1.0 Apidoc 离线版 官网上没有离线版的,费了九牛二虎之力才整理出一个离线版的,没有任何样式修饰,模样不好看,但是内容还可以。

    titanium-typescript:TypeScript 的 Titanium Mobile 类型

    Titanium Appcelerator API v3.1.3.GA 的环境声明。 var ROWS: number = 10; var children: Array<Titanium> = button.getChildren(); var window: Titanium.UI.Window = Titanium.UI.createWindow({ title: '...

    TitanTricks, Titanium Mobile的代码示例和组件.zip

    TitanTricks, Titanium Mobile的代码示例和组件 TitanTricks自述文件TitanTricks是 Titanium Mobile 项目,充满了可以重用的代码示例和技巧,面向begginers和中级级别用户。android和iOS兼容,但有些示例仅适用于 ...

    haxe_titanium_mobile:Appcelerator Titanium Mobile 的 Haxe Extern 类

    要安装到 haxelib,请运行haxelib git titanium_mobile_externs https://github.com/momer/haxe_titanium_mobile.git <version> haxelib 截至本次更新,最新为 3.5.0-rc1。 使用 externs 很简单,下面是test/Test...

    PresTitanium:为 CLERMONTECH 展示 Titanium

    2)Titanium 社区(与 Sencha Touch 相比,它很快就显得有限)? 3) 通过 Titanium 在所有平台之间共享的代码百分比? 4)专业版的价格? 其他人通过表格询问: 5) 可以在linux下编译IOS吗? 6) 用钛编码的...

    Titanium中文版开发手册

    Titanium中文版开发手册(翻译版)

    Titanium Backup_3.7.4捐赠完全版

    Titanium Backup_3.7.4捐赠完全版

Global site tag (gtag.js) - Google Analytics