forked from Github/cordova-plugin-run-in-background
Add ability to re-enable webview optimizations
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user