Friday, August 29, 2014

Hybrid Mobile App - Phone Gap

Hybrid mobile application development becoming future, any upcoming trends will have both commercial and opensource products with different set of features. I started using the IBM work-light for developing quick Hybrid mobile app and ended up in the Phonegap to avoid enterprise server license and due to my requirement as well. Any have Work-light built on top of Phonegap and Phonegap built on top of Apache Cordova. 


Hybrid applications are easy to build with powerful javascript frameworks like Dojo / JQuery / Node.js / etc. within in a 30 mins prepared skeleton for my application. Application will interact with the back-end servers to fetch the content as JSON and renders different screens. 






Phonegap provides easy way to build the application as Android / IOS / Backberry / Firefox / Ubuntu  apps. 


Followed Below Steps :

1. Install Cordova

          "sudo apt-get install cordova-cli"

Installs the Apache Cordova command line interface options , which provides option to build / install the application in different platform.


2. Install Phonegap 

          "sudo npm install -g phonegap"

3. Create the phonegap work environment directories with all Helloworld application code.
  

      "phonegap create mobile-app"

4. Add the platform for building the android based solution 

      "cordova platform add android"


5. Build and run the code in the android device. 


      "cordova build android"

      "cordova run android"

6. Download the emulator and start the AVD to run the application in the emulator


      "cordova emulate android"



Having lot of liberty to develop the required functionality in the javascript framework and less worried about the native functionalities. I can build the app for XCode / IOS with simple commands execution and no change to application "what a freedom for a application developer" :).




No comments: