percolatestudio/cordova-plugin-safe-reload

Name: cordova-plugin-safe-reload

Owner: Percolate Studio

Description: Cordova plugin to watch and recover after a broken Meteor Hot Code Push.

Created: 2015-03-05 05:47:08.0

Updated: 2018-04-23 13:46:19.0

Pushed: 2016-02-11 13:40:19.0

Homepage: null

Size: 262

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Percolate Studio's Safe Reload Plugin for Meteor / Cordova

When Meteor does a Hot Code Push, there is the possiblity of caching an unparseable JS or CSS file on the device. This will render the application completely broken and the only course of recovery is to uninstall the application.

SafeReload attempts to recover from this situation. After a window reload event happens, it will check to make sure the JS and CSS are working inside the WebView. If not, the plugin will revert back to the originally installed binary version by deleting any HCP versions currently installed.

Usage

Install via Atmosphere: meteor add percolate:safe-reload.

No application-level code changes required. Currently only iOS and Android supported.

License

MIT. (c) Percolate Studio, maintained by Tim Hingston (@timbotnik).

Safe Reload was developed as part of the Verso project.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.