Simple cordova plugin to check for access to the camera
$window.plugins.cameraAccess.checkAccess(
function() {
// Go ahead and access the camera, e.g. with cordova camera
},
function() {
// Inform the user that we need camera permission.
// Ideally, ask for permission and try again.
}
);