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

Camera permission is not turned on??

Open clarklight opened this issue 2 years ago • 1 comments

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

clarklight avatar Jun 06 '23 07:06 clarklight

i figured it out, the deprecated API requestPermission seems to work, but when i used the multiple permissions doesn't seem to work.

clarklight avatar Jun 08 '23 03:06 clarklight