cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
Hi when we debug the app cant see the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, we need to request this permission, any help?
Just directly use permission string.
permissions.requestPermission('a_permission_string');
Hi now we have this issue, the permission always set in false, how can i set the permission?

https://developer.android.com/reference/android/Manifest.permission.html#REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
Permission an application must hold in order to use ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS. This is a normal permission: an app requesting it will always be granted the permission, without the user needing to approve or see it.
You don't need to use this plugin.
Good afternoon, I also have the same problem
I have an application that works in the background but I need the application to ignore the optimization of the battery, the app is using ionic framework, can you tell me where I need to put the code so that the battery ignore me permission to work Thank you
https://developer.android.com/reference/android/Manifest.permission.html#REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
Permission an application must hold in order to use ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS. This is a normal permission: an app requesting it will always be granted the permission, without the user needing to approve or see it.
You don't need to use this plugin.
Hi, what does it mean "an app requesting it will always be granted the permission" for using the ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS in ionic cordova application ?