Socket
Socket
Sign inDemoInstall

cordova-plugin-dynamic-update

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-dynamic-update

Cordova Plugin to dynamically update the app www directory.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
9.29 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 06 Sep 2015

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc