Apache Cordova Installation

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.
Join Kindle Unlimited on any device @ Rs.99
Unlimited Reading. On any device.
Enjoy the freedom to explore over 1 million titles on any device at just Rs.99 a month, for a limited period. Click to see the catalog of unlimited books
By using Apache Cordova APIs an app can be built without any native codes such Java or Objcetive-C etc. Cordova combines HTML,CSS3 and JavaScript to create the application package which same as the package developed using native code. The app developed can be published any respective market places
To develop the application usind Cordova requirs node.js platform download it from https://nodejs.org/ and install it. To test the installation use
node -v
in bash shell
node --version
in Windows Command line
Next Install a Git download it from http://git-scm.com/. It is used by Cordova in background. Install Cordova using npm(node package manager) utility of Node.js. Use the following command on Terminal
sudo npm install -g cordova
in Windows use
npm install -g cordova
To test Cordova type :
cordova -v
in terminal or
cordova --version
in Command Line Now add target platform. Android SDK for Android app and Xcode for iOS app. For Xcode, there are two ways :
  • goto Apple Develper Downloads:AppleDownloader which requires registration as an Apple Developer. 
When Installation compelete, prepare Xcode for Cordova .Follow these: From the Xcode menu, select Preferences->Downloads tab. From the Components panel, press the Install button next to the Command Line Tools listing.iOS PLATFORM GUID

No comments: