mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 09:53:22 +00:00
Initial implementation for openAppStartSettings
This commit is contained in:
@@ -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).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user