Table of Contents

Notes on v 3.4.0:

Make all of your changes in the parent directory that all platforms will reference. Then build your code for the specific platform. Here's a nice shortcut:

cordova emulate –target=“ipad (retina)”

will rebuild the code, then run on the simulator

cordova run ios

will rebuild the code, the load on the device. Because of a bug you need to run the app on the device manually.

Disable status bar:

Get console log info:

Know what device you are on:

Media:

Pause Event (iOS):

Storage:

Width and height

Updating Plugins

cordova-update-plugins is a plugin to check and optionally make sure all plugins are updated:

Running on Android

Creating a release version: Android

This process (keytool, jarsigner, zipalign) was still required as of Cordova 9.0 April 2020

generate keystore file if it doesn't already exist. In the root directory of the project (parent of www): “keytool -genkey -v -keystore <APPNAME>.keystore -alias <APPNAME> -keyalg RSA -keysize 2048 -validity 10000” edit /platforms/android/AndroidManifest.xml so that debuggable is set to false

lintOptions {
    checkReleaseBuilds false
}

To build for release: “cordova build android –release”

As of Cordova 5 you seem to need to run the keysigner separately. The keysigner will sign an existing file. It does not write a new file:

After running the jarsigner it is necessary to run the zip align tool:

Splash Screen