Go cross-platform with Apache Cordova

No one likes to build a different native app for every mobile platform in existence. Cordova saves you much of the sweat by offering standard APIs that talk to device-specific hardware

A major problem facing anyone building a modern application is the question of how to deal with an ever-expanding variety of endpoints. From wallscreens to PCs to tablets to smartphones, today's motley crew of clients makes it hard for designers and developers to choose which devices to target -- and how to prioritize those they choose.

The obvious solution is to deliver apps for the two, or perhaps three, most popular mobile ecosystems. This is the easy way out and accounts for the dominance of the Apple App Store and Google Play.

But what if you want to deliver apps for a wider range of devices, including, say, Windows Phone devices or the BlackBerrys your business still uses to meet compliance requirements? Or what if you need to reach out beyond the West to non-Google Android app stores in China or to a still significant proportion of budget Tizen devices in Korea or to low-cost Firefox OS devices in developing markets?

For a wider reach, we need to go back to the early days of the iPhone, when Steve Jobs suggested that the Web was going to be the key to delivering mobile apps. While smartphones quickly went to native code for performance reasons, elements of Apple's initial app strategy still make sense as a way of delivering cross-platform apps.

Instead of building multiple apps, all you need to do is build a tool for rendering HTML and JavaScript content using a device platform's native tooling. That rendering engine can then be packaged and delivered with app-specific code.

Cordova's cross-platform approach

To continue reading this article register now