I am using the following code for checking if my react application has a camera permission:-
checkForCameraPermission = () => { try { navigator