This little plugin allows forcing the cordova webview to invalidate, triggering a full redraw of the component. This is to allow working around rendering issues in some versions of Android when the webview isn't responding to dynamic CSS or HTML content updates in JavaScript.
Use responsibly, overdoing the refresh calls will have a negative impact on battery life.
Note I haven't tested this yet to confirm but I expect this plugin will not work with Cordova >= 4.x since the WebView model exposed by the framework is very different from version 3, and the webView object available to the plugin no longer extends the webkit WebView.
I have no immediate plans to try and update this plugin to work with the new Cordova strategy, if you have any ideas feel free to submit a pull request.
If you are using cordova-cli, install with:
cordova plugin add https://github.com/woodyza/RedrawPlugin.git
With a plain plugman, you should be able to install with something like:
plugman --platform <ios|android> --project <directory> --plugin https://github.com/woodyza/RedrawPlugin.git
cordova.plugins.Redraw.invalidateWebView();