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

Does not work with REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

Open lbhifi opened this issue 7 years ago • 1 comments
trafficstars

Can't get this to work with REQUEST_IGNORE_BATTERY_OPTIMIZATIONS:

cordova.plugins.permissions.checkPermission(cordova.plugins.permissions.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS, function (status) { alert(JSON.stringify(status); });

It always returns {hasPermission: false}, regardless of it being activated or not. Calling requestPermissions gives same result.

Tried it with cordova.plugins.permissions.ACCESS_FINE_LOCATION just to see if I could get anything to work, and it actually did work. So it's just that specific REQUEST_IGNORE_BATTERY_OPTIMIZATIONS that doesn't work. Any ideas why?

lbhifi avatar Jul 07 '18 09:07 lbhifi

Have you found any solution for this issue REQUEST_IGNORE_BATTERY_OPTIMIZATIONS? ????? @lbhifi

jpatterson704 avatar Jul 21 '21 14:07 jpatterson704