martijnwalraven / cordova-plugin-safe-reload

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 like cordova plugin add https://github.com/percolatestudio/cordova-plugin-safe-reload.git.

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.

About

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


Languages

Language:JavaScript 76.7%Language:CSS 7.8%Language:HTML 6.7%Language:Java 4.5%Language:Objective-C 4.2%