Issue: Camera Authorization on API 23 and above
A way to solve:
- Use this plugin & follow the steps to install it.
https://ionicframework.com/docs/native/android-permissions/
and before call camera use the “requestPermission” method from “androidPermissions” object ( remember do the step 1)
this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.CAMERA)
.then(
result => {
// code where you call camera directive
console.log('Has permission?',result.hasPermission)
},
err => this.androidPermissions.requestPermission(this.androidPermissions.PERMISSION.CAMERA)
);
Good evening