Just wondering if there is a point where html5 is enough and titanium is not needed?

yurtboy's picture

I mean I guess titanium is great for a ton of reasons.
Code desktop apps that integrate with your toolbar, create mobile apps etc. But then there is HTML5 and css3. Right now on Android I can attach files to nodes etc due to HTML5 and the way Android deals with it. And HTML5 can store stuff in a local db for offline use (maybe though this is not good enough?)

So just wondering if others have any thoughts on when HTML5 alone is enough and where Titanium is key.

I really like the Titanium demo where they made TweetieLite which looked just like Tweetie for the mac. A good example of a desktop app, html and the integration to the tool bar etc.

Thanks

Comments

Have spent time on it

johnstorey's picture

I can't imagine anyone would go to Titanium first without having spent alot of time thinking on this. Here are the thoughts that landed me with Titanium over Sencha Touch.

What is in the vendors incentive in common HTML5 support for all phone features? I'd say 'not much'. How long will it be before market demand for standards override the vendors self-interest? I say at least 2 years. Can I avoid the lowest common denominator issue with HTML5? I lived through Windows OS vs. OS/2 when I tried to use wxWindows; we're all still living with IE; etc. History says that vendors have every reason to make a farce of standard support whilst interpreting them in different ways and adding unique features to their own platforms.

Say that I want my mobile app to record video today with HTML5. Will that work across multiple mobile platforms with a single code base? (It could -- I am pulling out an example that I have not researched out of thin air.) Let's say 'no' for arguments sake. With Titanium I can code in native modules to fill that gap. In fact I need to do that for streaming video support, which is in Android, but not yet in the Titanium layer over Android.

Or lets say that I want my code base to use some interesting Android Intent features, and do something else on the iPhone and Blackberry, while keeping most of my code the same. The odds of HTML5 supporting Android Intents seem pretty unfavorable to me. I can do that in custom code in Titanium, and keep a single code base for the rest of my app. The Titanium approach wins there as well. (Actually, if I recall recent source code commits correctly they are adding Intent support to Titanium now).

How about if I want to use the development skills I gain during mobile platfor development elsewhere? As you point out, HTML5 may have some issues running as a desktop app. But not only am I leveraging my Javascript skills across mobile, web site development, and the desktop, but JavaScript is a major contender to be the 'next big language' thanks to efforts such as Rhino. It is popping up in development environments and scriptable applications more and more. So I am leaving open the possibility that I am improving a skill set that has transferability to many problem domains. That's not anything to lightly dismiss. There are so many technologies out there that you have to pick which ones you learn very carefully to ensure they provide as large as possible a future marketplace for you to play in.

The only real concern I see is if Apple starts changing their TOS again to stop Titanium apps from being approved for their App Store. Other than that the Titanium approach seems to give the most options. I expect some of these arguments to lose power as the state of the technology changes, but they should hold true long enough to make Titanium an investment worth making today.

Now if you are only going to choose one mobile platform, the iPhone is the no-brainer option. It does not matter what you develop with then.

John S.

Thanks for the reply...

yurtboy's picture

this is a very helpful. It does make sense that HTML5 may not be full featured and cross platform compliant yet(ie I can attach an image in Android but not iPhone to a drupal node). And as you note so the lag between that and the momentum now on apps is really a big variable toward titanium as well since apps will be around for some time.

One thought I am sure there are tons of threads on "The only real concern I see is if Apple starts changing their TOS again to stop Titanium apps from being approved for their App Store". But even if on some small chance this comes true you still have Desktop as well as Android avenues and as you noted, you are still building Javascript and html5 skills.

Thanks though this is a big help as I try to figure out some next steps in this growing mobile medium.

try phone gap

kscottj's picture

I been using phoneGap

It HTML 5 with a small native layer to provide stuff the HTML does not support.

Titanium API

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week