cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
Camera permission is not turned on??
I am testing this on Android Have the below in the config.
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.CAMERA" />
</config-file>
When i run the demo code
permissions.requestPermission(permissions.CAMERA, success, error);
function error() {
console.warn('Camera permission is not turned on');
}
function success( status ) {
if( !status.hasPermission ) error();
}
Then it return Camera permission is not turned on. I am just running on a blank demo Cordova app.
Any pointers? Clark
i figured it out, the deprecated API requestPermission seems to work, but when i used the multiple permissions doesn't seem to work.