Skip to content

Commit

Permalink
Merge pull request #1058 from RodriSanchez1/fix/disableCameraPermissions
Browse files Browse the repository at this point in the history
Camera permissions commented
  • Loading branch information
RodriSanchez1 authored Oct 25, 2021
2 parents d013781 + 8efe84d commit 424bcfe
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/cordova-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,25 +227,25 @@ export const requestCvaPermissions = () => {
}
);

permissions.checkPermission(
permissions.CAMERA,
function(status) {
console.log('Has CAMERA:', status.hasPermission);
if (!status.hasPermission) {
permissions.requestPermission(
permissions.CAMERA,
function(status) {
console.log('success requesting CAMERA permission');
},
function(err) {
console.warn('No permissions granted for CAMERA');
}
);
}
},
function(err) {
console.log(err);
}
);
// permissions.checkPermission(
// permissions.CAMERA,
// function(status) {
// console.log('Has CAMERA:', status.hasPermission);
// if (!status.hasPermission) {
// permissions.requestPermission(
// permissions.CAMERA,
// function(status) {
// console.log('success requesting CAMERA permission');
// },
// function(err) {
// console.warn('No permissions granted for CAMERA');
// }
// );
// }
// },
// function(err) {
// console.log(err);
// }
// );
}
};

0 comments on commit 424bcfe

Please sign in to comment.