title: iOS Camera permissions doesn't appear under settings in some devices
body: <p>I'm having some issues trying to use the camera. The problem is that some devices show me the Camera entry under settings, and some others don't. In those devices where the Camera switch doesn't appear, I'm not able to use the camera, since it doesn't have permissions, and it also doesn't appear under settings to enable them.</p>
  
  <p>This is how it looks on a device that works:</p>
  
  <p><a href="https://i.stack.imgur.com/lV0Mm.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/lV0Mm.jpg" alt="enter image description here"></a></p>
  
  <p>And this is how it looks in devices that doesn't work.</p>
  
  <p><a href="https://i.stack.imgur.com/BYYMt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/BYYMt.png" alt="enter image description here"></a></p>
  
  <p>When I took those screenshots, the application should've asked for permissions already, but it didn't.</p>
  
  <p>I also verified that those devices doesn't have Restrictions enabled.</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE 1: Added code</strong></p>
  
  <p>This is the code I'm using to show the camera (it's under a custom view, not the native camera view controller)</p>
  
  <pre><code>self.captureSession = [[AVCaptureSession alloc] init];
  AVCaptureDevice *videoCaptureDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo];
  NSError *error = nil;
  AVCaptureDeviceInput *videoInput = [AVCaptureDeviceInput deviceInputWithDevice:videoCaptureDevice error:&amp;error];
  if(videoInput)
  {
      [self.captureSession addInput:videoInput];
  }
  else
  {
      NSLog(@"Error: %@", error);
  }
  
  AVCaptureMetadataOutput *metadataOutput = [[AVCaptureMetadataOutput alloc] init];
  [self.captureSession addOutput:metadataOutput];
  [metadataOutput setMetadataObjectsDelegate:self
                                       queue:dispatch_get_main_queue()];
  [metadataOutput setMetadataObjectTypes:@[AVMetadataObjectTypeCode39Code, AVMetadataObjectTypeQRCode]];
  
  AVCaptureVideoPreviewLayer *previewLayer = [[AVCaptureVideoPreviewLayer alloc] initWithSession:self.captureSession];
  previewLayer.frame = self.view.layer.bounds;
  UIView * previewView = [[UIView alloc] initWithFrame:self.view.frame];
  [previewView.layer addSublayer:previewLayer];
  [self.view addSubview:previewView];
  [self.view sendSubviewToBack:previewView];
  
  [self.captureSession startRunning];
  </code></pre>