From 8efe84d4cdd020ac4badf7d64575658ff7a0b5ce Mon Sep 17 00:00:00 2001 From: RodriSanchez1 Date: Mon, 25 Oct 2021 16:39:12 -0300 Subject: [PATCH] Camera permissions commented --- src/cordova-util.js | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/cordova-util.js b/src/cordova-util.js index 695c35bd9..1740af6fb 100644 --- a/src/cordova-util.js +++ b/src/cordova-util.js @@ -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); + // } + // ); } };