Creating Mobile Application Using Cordova

Cordova, 2016-01-26 06:46:14 UTC

1. Create the app

$ cordova create hello com.example.hello HelloWorld

hello = directory

com.example.hello = domain-style identifier

HelloWorld = the application's display title

 

2. Add Platforms

Platform on Mac;

$ cordova platform add ios
$ cordova platform add amazon-fireos
$ cordova platform add android
$ cordova platform add blackberry10
$ cordova platform add firefoxos

Platform on Windows;

$ cordova platform add wp8
$ cordova platform add windows
$ cordova platform add amazon-fireos
$ cordova platform add android
$ cordova platform add blackberry10
$ cordova platform add firefoxos

 

Check paltform;

$ cordova platforms ls

 

Remove platform;

$ cordova platform rm android

 

3. Build App

$ cordova build
$ cordova build ios

Actually, cordova build command run these command;

$ cordova prepare ios
$ cordova compile ios

 

4. Run via Android emulator;

$ cordova emulate android

 

5. Run via Android device;

$ cordova run android

 

 


Share: