📜 ⬆️ ⬇️

Cross-platform development on mobile devices

PhoneGap vs. Comparison Titanium vs. Rhodes

First of all, I should note that cross-platform development is not for those who develop 3D games, interactive, multimedia and animated applications.

The developments discussed in this article are all based on web technologies and can be used by web developers who want to apply their experience in the world of mobile applications.
')
PhoneGap and Titanium use HTML, CSS, and Javascript. They both provide the Javasript API to have access to the device’s native capabilities. (GPS / Geolocation, vibration, Accelerometer, sound ...). Rhodes is based on Ruby, which is used as a server that generates html content. Through ruby, it interacts with the native functions of the devices.

For Titanium and PhoneGap, application logic runs inside the device’s native WebView control. Basically, any phone function can be transferred to javascript. On the other hand, a normal web application that runs inside a browser on a mobile device does not have access to the mobile SDK due to security reasons.

Although it is written on the Titanium website that applications are compiled into the device’s native code, don’t believe these words. Your javascript is packaged into application resources. When the application starts, it loads the resources in the UIWebView control and runs them as javascript.

The same can be said about PhoneGap. From an architectural point of view, these two frameworks are very similar.

What about the differences between PhoneGap and Titanium?

1. PhoneGap does not insert the device’s native interface into javascript. Titanium, on the other hand, has an advanced UI API and can create all kinds of devices native to the device. Thus, applications on Titanium look more native than applications on PhoneGap.
2. PhoneGap supports more mobile platforms than Titanium. PhoneGap works on iPhone, Android, Symbian, Palm and Blackberry devices. Titanium is positioned only for iPhone and Android.

As for Rhodes, it is somewhat similar to PhoneGap. It supports the same devices as PhoneGap. In addition, it can even run under win32 for test purposes. Rhodes comes with RhoSync, a library for storing application data on the server via web services. But this does not mean that web-services cannot use PhoneGap and Titanium.

All listed libraries are free. For more information about them you can find on the relevant sites.

If you want to develop cross-platform 3D games, then I advise you to look towards unity3d.com

This article is a free translation and corrected in accordance with the real situation.

PS Separately, you can read about Titanium here: habrahabr.ru/blogs/javascript/95010

Source: https://habr.com/ru/post/106629/


All Articles