cordova-plugin-ionic
Ionic Cordova SDK
Last updated 6 months ago by tlancina .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cordova-plugin-ionic 
SYNC missed versions from official npm registry.

Ionic Cordova SDK

Supported platforms: iOS, Android

Setup

cordova plugin add cordova-plugin-ionic --save --variable APP_ID="abcd1234" --variable CHANNEL_NAME="Master" --variable UPDATE_METHOD="background"

The plugin will be available on window as IonicCordova

NOTE: The plugin delays the cordova ready event until it finish checking for updates and add this preference to the app <preference name="AutoHideSplashScreen" value="false"/>, which makes the Splash Screen to not go away automatically. All Ionic templates run this.splashScreen.hide(); on cordova ready event, but if it was removed it should be added back. Alternatively the app can add <preference name="AutoHideSplashScreen" value="true"/> to override the value added by the plugin, but that can lead to the Splash Screen going away before the download is complete.

Live Updates

Cordova Install Variables

  • APP_ID Required - Your Ionic Pro app ID
  • CHANNEL_NAME Required - The channel to check for updates from
  • UPDATE_API - The location of the Ionic Pro API (only change this for development)
  • UPDATE_METHOD - auto, background, or none. Dictates the behavior of the plugin. auto will download and apply the latest update on app start, potentially leading to long splash screen loads if the connection is slow. background will only download the update in the background on app start, but will allow full functionality while doing so, only redirecting users the next time the app is loaded. none will do nothing, leaving full plugin functionality in the hands of the developer. Default is background
  • MAX_STORE - The maximum number of downloaded versions to store on the device for quick loading. More versions means less downloading, but can increase the app size greatly. Default is 3 (Defaults is 2 in V5)
  • MIN_BACKGROUND_DURATION - The minimum duration in seconds after which the app in background checks for an update. Default is 30 (New in V5)

Preferences

  • DisableDeploy - Default value is false.

Allows to disable deploy updates by adding this preference in the config.xml

<preference name="DisableDeploy" value="true" />

API Docs

External modules


Contributing to this plugin

npm install
npm run create-dev

This will create a blank Ionic app in a local tmp directory with the plugin and dependencies installed, and the iOS platform added. Native plugin code is installed with --link and any changes to the typescript in www will be copied over into the app's platforms/ios and platforms/android directories.

Some other helpful dev commands

npm run apply-dev

Updates the linked plugin in the tmp test app with your JavaScript changes

npm run watch

Watches for Typescript changes

npm run watch-dev

Watches for Typescript changes, then runs the apply-dev script to propogate them to the testing app.

Current Tags

  • 5.4.7                                ...           latest (6 months ago)
  • 4.2.0                                ...           legacy (2 years ago)
  • 5.4.0-1                                ...           next (a year ago)
  • 5.0.5-rc.1                                ...           rc (2 years ago)

103 Versions

  • 5.4.7                                ...           6 months ago
  • 5.4.6                                ...           9 months ago
  • 5.4.5                                ...           a year ago
  • 5.4.4                                ...           a year ago
  • 5.4.3                                ...           a year ago
  • 5.4.2                                ...           a year ago
  • 5.4.1                                ...           a year ago
  • 5.4.0                                ...           a year ago
  • 5.4.0-1                                ...           a year ago
  • 5.3.1                                ...           a year ago
  • 5.4.0-0                                ...           a year ago
  • 5.3.0                                ...           2 years ago
  • 5.3.0-3                                ...           2 years ago
  • 5.2.10                                ...           2 years ago
  • 5.2.9                                ...           2 years ago
  • 5.2.9-0                                ...           2 years ago
  • 5.2.8                                ...           2 years ago
  • 5.2.8-0                                ...           2 years ago
  • 5.2.7                                ...           2 years ago
  • 5.2.7-0                                ...           2 years ago
  • 5.2.6                                ...           2 years ago
  • 5.2.6-1                                ...           2 years ago
  • 5.2.5                                ...           2 years ago
  • 5.2.5-1                                ...           2 years ago
  • 5.2.5-0                                ...           2 years ago
  • 5.2.4                                ...           2 years ago
  • 5.2.3                                ...           2 years ago
  • 5.2.2                                ...           2 years ago
  • 5.2.1                                ...           2 years ago
  • 5.2.0                                ...           2 years ago
  • 5.1.6                                ...           2 years ago
  • 5.1.5                                ...           2 years ago
  • 5.1.4                                ...           2 years ago
  • 5.1.4-2                                ...           2 years ago
  • 5.1.4-1                                ...           2 years ago
  • 5.1.4-0                                ...           2 years ago
  • 5.1.3                                ...           2 years ago
  • 5.1.3-0                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.2-0                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.11-0                                ...           2 years ago
  • 5.0.10                                ...           2 years ago
  • 5.0.10-0                                ...           2 years ago
  • 5.0.9                                ...           2 years ago
  • 5.0.8                                ...           2 years ago
  • 5.0.7                                ...           2 years ago
  • 5.0.6                                ...           2 years ago
  • 5.0.5                                ...           2 years ago
  • 5.0.5-rc.1                                ...           2 years ago
  • 5.0.4                                ...           2 years ago
  • 5.0.3                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.1-0                                ...           2 years ago
  • 4.2.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 5.0.0-rc.8                                ...           2 years ago
  • 5.0.0-rc.7                                ...           2 years ago
  • 5.0.0-rc.6                                ...           2 years ago
  • 5.0.0-rc.5                                ...           2 years ago
  • 5.0.0-rc.4                                ...           2 years ago
  • 5.0.0-rc.3                                ...           2 years ago
  • 5.0.0-rc.2                                ...           2 years ago
  • 5.0.0-rc.1                                ...           2 years ago
  • 5.0.0-rc.0                                ...           2 years ago
  • 5.0.0-beta.2                                ...           2 years ago
  • 5.0.0-beta.1                                ...           2 years ago
  • 5.0.0-beta.0                                ...           2 years ago
  • 5.0.0-alpha.3                                ...           2 years ago
  • 5.0.0-alpha.2                                ...           2 years ago
  • 5.0.0-alpha.1                                ...           2 years ago
  • 5.0.0-alpha.0                                ...           2 years ago
  • 4.1.7                                ...           2 years ago
  • 4.1.6                                ...           2 years ago
  • 4.1.5                                ...           2 years ago
  • 4.1.4                                ...           3 years ago
  • 4.1.3                                ...           3 years ago
  • 4.1.2                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.1.3                                ...           3 years ago
  • 3.1.2                                ...           3 years ago
  • 3.1.1                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.0.4                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.9                                ...           3 years ago
  • 1.1.8                                ...           3 years ago
  • 1.1.7                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 57
Last Day 0
Last Week 50
Last Month 20
Dependencies (1)
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |