Web Development Blog

Developing an HTML5 iPhone app using jQuery mobile & PhoneGap – Part I

Last week, we submitted an iPhone app to iTunes app store. This week, it was approved by Apple and the app is now available for download from the app store. Since everyone knows that HTML5 and app development is the future of mobile space, we'd like to share with you our experience of developing an HTML5 iPhone app using jQuery mobile & PhoneGap.

About the app
The app is called "Colour Match" and the purpose of the app is to allow users to pick any colour using a colour picker tool and display clothing & accessories that match the colour from Online Shopping USA database. Features of the app include a colour picker, a selection of most popular colours for easy browsing, favourites where users can save their favourite products and email, facebook and twitter sharing.

Technologies used
The technologies used for the app are:
- jQuery 1.7.1 + jQuery Mobile 1.0.1 (Javascript framework)
- PhoneGap 1.4.1
- HTML5 (template structure & Web SQL database storage)
- CSS3 (webkit animations and layout)
- PHP for web services (a few custom web services were written to obtain data from a mySQL database that resides on web server)

PhoneGap plugins used
We used the following PhoneGap plugins to provide native features that are not possible to implement using Javascript/HTML.
- Twitter
- ChildBrowser
- EmailComposer

Development timeline
It look us about a week to come up with the concept and fine-tune requirements before starting the actual development. The HTML5 + CSS development took less than a week as jQuery mobile made it pretty easy to have a working functional app within a few days. The design of the app took a few days. Most of the development time was spent on writing web services in PHP and writing a system that automatically scans images and picks the most appropriate colour. It took us half a day to set up Xcode, PhoneGap, provisional certificates etc (mind you, this wasn't the first time we did this, but it still took us some time because we are not very familiar with a Mac computer). Then one full day was spent integrating and intalling PhoneGap plugins into the app, and finally submitting it to iTunes. All up, it took about 4 weeks from the start of the project to the day the app became available on iTunes app store.

---

Part II will cover more technical details such as the app structure, submission process to iTunes, installing certificates and troubleshooting XCode issues.

Sample PhoneGap Project

If you would like to get a sample PhoneGap project (uses jQuery mobile), you can download PhoneGap App using jQuery Mobile source code.

One thought on “Developing an HTML5 iPhone app using jQuery mobile & PhoneGap – Part I

  1. Hello there i got a question about an other article. But can’t post a comment in that particular article. It’s a question about the jqeury mobile/php form, thanks in advance

Comments are closed.

Twitter
LinkedIn
YouTube
Instagram