Titanium and HTML5

You must Login before you can answer or comment on any questions.

Good morning,

I want to ask you , if we can develop applications using HTML 5 through Titanium IDE, or it's just a javascript which will be converted to the HTML5?

I read this conversation: http://stackoverflow.com/questions/11436219/html5-app-with-appcelerator-titanium and I am becoming confused!

— asked 8 months ago by Karray Gargouri
4 Comments
  • Titanium uses JavaScript as a common programming interface to platform specific (native) controls and code. You don't actually use HTML5 in Titanium.

    — commented 8 months ago by Martin T

  • So to clarify a little bit the situation, what's the relation between Titanium and HTML5 ?

    — commented 8 months ago by Karray Gargouri

  • Well I don't really know a lot about the Mobile Web publishing part (where HTML5 would be relevant). But I would assume that the "Ti.UI.createSlider" method in Titanium would create an <input type="range"> element, which would be HTML5. But when publishing for iOS "Ti.UI.createSlider" would create a native UISlider. So there may be a relation between Titanium and HTML5 when publishing for Mobile Web, but publishing for other platforms, there really isn't any.

    — commented 8 months ago by Martin T

  • Show 1 more comment

1 Answer

Titanium Mobile Web is a ground-up port of the Titanium API to the mobile web. We use several browser technologies, some of which are categorized as "HTML5". For example, Titanium Mobile Web uses the HTML5 <video> tag for the Ti.Media.VideoPlayer.

There are several APIs that Titanium Mobile Web uses that are NOT HTML5 such as Geolocation API and a ton of CSS3 features like transforms, gradients, etc.

The native iOS and Android platforms do not have anything to do with HTML5, however, you can certainly create a native iOS or Android app with a WebView and stuff HTML5 stuff in it.

It's worth clarifying that Titanium Mobile Web apps require a web server and are not distributed through the Apple App Store or the Android Playstore.

Your Answer

Think you can help? Login to answer this question!