In our next tutorial, we will show you how to configure the Cordova Application.
Note: To debug iOS hybrid apps on an emulator or device, you need a Mac OS X. If everything is finished without errors, the output should show the default start screen of the app. You can modify the default configurations or add new ones to the list. Once we run the app, it will install it on the platform we specified. Windows users: If you already have an Android emulator or a Windows Phone emulator, just ensure that youre up to date. For some devices, you will also need to install the USB driver. You can also use real device for testing by enabling USB debugging from the options and connecting it to your computer via USB cable. NOTE − We will use the Genymotion android emulator since it is faster and more responsive than the default one. If you want to use the external emulator or real device you should use −Ĭ:\Users\username\Desktop\CordovaProject>cordova run android If you are using the default emulator you should use −Ĭ:\Users\username\Desktop\CordovaProject>cordova emulate android In this step we will build the app for a specified platform so we can run it on mobile device or emulator.Ĭ:\Users\username\Desktop\CordovaProject>cordova build android
You can also remove platform from your project by using −Ĭ:\Users\username\Desktop\CordovaProject>cordova platform rm android If you are developing on Mac, you can use − There are other platforms that can be used on Windows OS.Ĭ:\Users\username\Desktop\CordovaProject>cordova platform add wp8Ĭ:\Users\username\Desktop\CordovaProject>cordova platform add amazon-fireosĬ:\Users\username\Desktop\CordovaProject>cordova platform add windowsĬ:\Users\username\Desktop\CordovaProject>cordova platform add blackberry10Ĭ:\Users\username\Desktop\CordovaProject>cordova platform add firefoxos We have already installed Android SDK, so we will only install android platform for this tutorial.Ĭ:\Users\username\Desktop\CordovaProject>cordova platform add android Since we are developing on windows, we can use the following platforms. To be able to use the specified platform, you need to have installed the specific platform SDK. You should only choose platforms that you need. In our example, it is the CordovaProject. You need to open your project directory in the command prompt. You should use your own domain value if possible. Io.cordova.hellocordova is the default reverse domain value. We will create it on desktop.Ĭreate CordovaProject io.cordova.hellocordova CordovaAppĬordovaProject is the directory name where the app is created.
Open the directory where you want the app to be installed in command prompt. install cordova on mac os x el capitanBest explanation at all of how to Cordova installationThis Video to help install Cordova developing apps for platforms. Once everything is ready, we can create our first hybrid Cordova application. We have understood how to install Cordova and set up the environment for it. (or Android Studio > Preferences > Tools > Emulator on macOS ), then select Launch in a.