Add ability to re-enable webview optimizations

This commit is contained in:
Nathan Kerr
2020-08-14 10:34:19 -07:00
parent b33044c8e5
commit 6000adfa15
2 changed files with 36 additions and 0 deletions

View File

@@ -164,6 +164,14 @@ exports.disableWebViewOptimizations = function()
}
};
exports.enableWebViewOptimizations = function()
{
if (this._isAndroid)
{
cordova.exec(null, null, 'BackgroundModeExt', 'enableWebview', []);
}
};
/**
* Disables battery optimazation mode for the app.
*