cordova-plugin-android-permissions icon indicating copy to clipboard operation
cordova-plugin-android-permissions copied to clipboard

REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

Open carlosduall opened this issue 8 years ago • 5 comments

Hi when we debug the app cant see the REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, we need to request this permission, any help?

carlosduall avatar Nov 26 '16 15:11 carlosduall

Just directly use permission string. permissions.requestPermission('a_permission_string');

NeoLSN avatar Dec 02 '16 11:12 NeoLSN

Hi now we have this issue, the permission always set in false, how can i set the permission? pasted image at 2017_01_10 11_18 am

carlosduall avatar Jan 10 '17 16:01 carlosduall

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.

NeoLSN avatar Jan 12 '17 17:01 NeoLSN

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

frontendDuall avatar Jan 13 '17 20:01 frontendDuall

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 ?

muhammadtalhaishtiaq avatar Nov 24 '22 19:11 muhammadtalhaishtiaq