This section of the tutorial will help you understand “what is phonegap cordova”
1. About PhoneGap
PhoneGap is an open source development framework for building cross platform mobile apps. It is a wrapper used for native packaging of mobile web application. It is developed by Nitobi, a company based in Vancouver, Canada. Nitobi was acquired by Adobe Corporation on the year of 2011. After the acquisition Adobe released PhoneGap technology as open source under the name Apache Cordova.
2. What is PhoneGap Cordova
Mobile market is huge with bunch of opportunities. At the same time it is really painful experience for the developers to make an application reach to the wider audience. There are multiple platforms like android, iPhone, Blackberry, windows comes with lot different capabilities. Every platform uses different programming language syntax and different distribution process. As the programming platforms are different, developing an application requires putting the separate development effort for different platforms.
Below table explains the languages, tools and application formats accepted by different app stores for different mobile platforms.
iOS | Android | Blackberry | Windows | |
Language | Objective C | Java | Java | C#, .NET. |
Tools | Xcode | Android SDK | Blackberry SDK | Windows Dev. Tools |
Packaging format | .app | .apk | .cod | .xap |
App Stores | Apple | Android Market | Blackberry app World | Windows |
Below are the challenges today to maintain the application for different platforms
- Development tools and programming languages are different for different platforms, which require developers with different skillsets.
- Developing the application for different platforms is cost effective
- As development is different for different platforms, we will have different source code as a result code base gets messy and becomes difficult for maintenance and support
- Time to market increases as need parallel development and bigger team need
3. Revolution of Cross Platform Application development
Due to the above challenges, there’s revolution of cross platform mobile application development. Cross platform approach or in another word web approach. In this approach, the application development will be using HTML, CSS, and JavaScript technologies. HTML and Java Script is platform independent as it runs on browser. The below table displays the basic different between
Native App | Mobile Web App |
|
|
Sometimes though, you’ll want to distribute your application in different ways, including via various app stores. Imagine the best of both worlds: build an application with HTML5, JavaScript or some other competing web frameworks, and then distribute it alongside all of those other native apps.
4. Limitations with HTML5 & JavaScript based application
Although HTML5 is a breakthrough in the mobility space, it couldn’t applaud the way it aimed to achieve it. It doesn’t allow developers to access the native mobile app capability like Camera, GPS, Barcode Scanning, etc. Here is the need of PhoneGap (Codova)
5. PhoneGap Features
PhoneGap is an open source development framework for building cross platform mobile apps. It allows you to package your mobile web application code and resources into a binary app and ready to distribute to Apple, Android, Palm, Symbian, and BlackBerry devices. It is not only the purpose of PhoneGap to distribute the web application to application store. It is also providing the feature to access the device hardware from web application.
So, if you’ve ever wondered how to make your mobile web app access a handset’s file-system, use JavaScript to make it vibrate, prompt users to use the camera, or even check the device’s current network state, then PhoneGap approach is the answer.
6. PhoneGap supported platforms
- iPhone / iPhone 3G and Higher
- Blackberry OS 5.x and Newer
- Android
- Web OS
- Windows Phone 7
- Symbian
- Bada
Hardware Features support table
7. Advantages of PhoneGap (Cordova)
- One codebase can be maintained for multiple platforms
- Reuse existing web developer skills
- Faster development
- Based on open standards