cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
Does not work with REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
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?
Have you found any solution for this issue REQUEST_IGNORE_BATTERY_OPTIMIZATIONS? ????? @lbhifi