Posts

Showing posts with the label camera

Is there a way to ask user for Camera access after they have already denied it on iOS?

Is there a way to ask user for Camera access after they have already denied it on iOS? I am using this code, but unfortunately it doesn't work. After a user has denied camera access, I want to ask them for permission to use the camera again the next time they try to load it (in this case it's a barcode scanner using the camera view). I always get AVAuthorizationStatusDenied and then granted always automatically returns NO even though I ask for it again in code. AVAuthorizationStatusDenied granted NO Many of my users are e-mailing me saying "my screen is black when I try to barcode scan" and it's because they have denied camera access for some reason. I want to be able to prompt them again because most likely the denial was a mistake. Is there a possible way to do this? AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; if(authStatus == AVAuthorizationStatusAuthorized) { NSLog(@"%@...