Check if camera is authorized


#1

Is there a way to know if the camera has been authorized? I was looking at FuseJS/Camera, and it has a method “checkPermissions” but I cant access it. Am I doing something wrong?


#2

Give this a try…

  Camera.checkPermissions()
    .then(function() {

    })
    .catch(function() {
      Camera.requestPermissions()
        .then(function() {
            console.log("PERMISSION YES")

        })
        .catch(function() {
            console.log("PERMISSION NO")
        });
    });