Initial implementation for openAppStartSettings

This commit is contained in:
Sebastián Katzer
2019-02-10 13:09:57 +01:00
parent a9669052c0
commit 8fbf210e14
3 changed files with 119 additions and 5 deletions

View File

@@ -177,6 +177,23 @@ exports.disableBatteryOptimizations = function()
}
};
/**
* Opens the system settings dialog where the user can tweak or turn off any
* custom app start settings added by the manufacturer if available.
*
* @param [ Object|Bool ] options Set to false if you dont want to display an
* alert dialog first.
*
* @return [ Void ]
*/
exports.openAppStartSettings = function (options)
{
if (this._isAndroid)
{
cordova.exec(null, null, 'BackgroundMode', 'appstart', [options]);
}
};
/**
* Move app to background (Android only).
*