PhoneGap – Getting Started

What is PhoneGap?

According to their web site:

PhoneGap is a free and open source framework that allows you to create mobile apps using standardized web APIs for the platforms you care about.

OK. That sounds sexy.

Back in 2011, Adobe Systems Incorporated announced it had acquired Nitobi Software, the creator of PhoneGap. What’s a little more interesting is the PhoneGap pricing model, which can be found here. The best news is that it is free to build your first App. Costs go up after that. With “free” being said, building an App with PhoneGap does not somehow magically by-pass other vendor’s charges. Apple will still bill you to become an Apple Developer, and so will Google for their platform. You’ll need to check with each vendor you intend to develop with for their current prices. And you’ll need to download xCode (for building iOS apps, plus you may need a Java SDK). And you can’t develop for Windows Mobile currently on OSX.

I’ve tried a few different ‘multi-platform’ App development kits in the past, including PhoneGap. Back when I tested PhoneGap, it reeked. It was command line interface only, the documentation was poor. There were multiple locations to install PhoneGap’s additional code requirements from (actually, this part hasn’t changed). But, in fairness, PhoneGap’s competition at the time, and even now, is quite ordinary. For example, I recently ended my flirtation with Appcelerator because, whilst I could install, create and start building my App, I couldn’t for the life of me figure out how to open my App again after a hard day’s coding in a new and unfamiliar development environment. And after checking Google’s near-infinite knowledge base on everything, it appears I was not alone in the struggle on how to edit my App in Appcelerator. I’ve uninstalled that program. Forever.

Back to PhoneGap.

PhoneGap has a curiously simple user-interface. Oh, and it now has a graphical user-interface. Still in beta. You can install it from here. If you insist on using a command line interface even though for like 40+ years we’ve existed in a GUI world, now with a haptic interface plugged into the screen, you can of course download and live happily in your command-line-based interface where even the smallest typo will lead to frustration. Suit yourself.

I am pleased to say that – despite PhoneGap’s user interface being deceptively simple, it works. I connected an App to my iPhone within a few minutes of downloading the iPhone PhoneGap App. You can also test on different devices. Here’s a link.

So, now that I’ve worked out how to download, install, and connect to PhoneGap on OSX, have I built an App? No. I’m still wading through the aged, bent, and crooked (out-of-date) documentation. In a couple of days I’ll show you how to get GeoLocation working despite PhoneGap’s best efforts to obfuscate the ‘how to’ information using tired and out-of-date information.

Advertisements