mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-15 10:53:22 +00:00
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