Socket
Book a DemoInstallSign in
Socket

cordova-plugin-dynamic-update

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-dynamic-update

Cordova Plugin to dynamically update the app www directory.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

Dynamic Update Plugin for Apache Cordova

Cordova Plugin to automatically update your Cordova Android app, given an externally hosted zip of the www update.

Install

Latest published version on npm (with Cordova CLI >= 5.0.0)

cordova plugin add cordova-plugin-dynamic-update

Latest version from GitHub

cordova plugin add https://github.com/leecrossley/cordova-plugin-dynamic-update.git

Usage

You do not need to reference any JavaScript, the Cordova plugin architecture will add a dynamicupdate object to your root automatically when you build.

Ensure you use the plugin after your deviceready event has been fired.

Download

Downloads the zip file of your update.

var url = "http://your.zip.url/file.zip";

dynamicupdate.download(onSuccess, onError, url);

Deploy

Deploys the last downloaded zip file. There is no success callback, as the updated app is automatically started.

dynamicupdate.deploy(onError);

Platforms

Android only. iOS guidelines prohibit this behaviour.

License

MIT License

Keywords

cordova

FAQs

Package last updated on 06 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.