cordova-plugin-android-permissions
cordova-plugin-android-permissions copied to clipboard
requestPermissions not working for Camera
I have the following code in my project:
this.androidPermissions.requestPermissions(
[
this.androidPermissions.PERMISSION.CAMERA,
this.androidPermissions.PERMISSION.READ_EXTERNAL_STORAGE,
this.androidPermissions.PERMISSION.WRITE_EXTERNAL_STORAGE
]
);
Which is in the app.component.ts file. The permissions were requested on app initialization.
Now the app only requests storage permissions but not anymore for camera. No error is shown on console.