title: IOS app not asking for permission on IOS 14
body: <p>Recently, I had my app rejected on the review of App Store connect because it was not requesting the user's permission to access the camera. I found that, testing in different devices, it is requesting the permission on IOS 12, however on IOS 14 it is not, the dialog won't show up and it opens the camera directly. I tried to implement <code>permission_handler</code> to make it work but nothing. By printing the <code>Permission.camera.status</code> I noticed that on IOS 14 is gives me <code>granted</code>, as on  IOS 12 it shows <code>denied</code>. Do you guys have any idea how to deal with this situation?</p>
  <p>I have already added the files to my <code>info.plist</code>:</p>
  <pre><code>&lt;key&gt;NSCameraUsageDescription&lt;/key&gt;
  &lt;string&gt;Precisamos de acesso a câmera para tirar fotos.&lt;/string&gt;
  &lt;key&gt;NSMicrophoneUsageDescription&lt;/key&gt;
  &lt;string&gt;Precisamos de acesso ao microfone para gravar aúdio.&lt;/string&gt;
  &lt;key&gt;NSPhotoLibraryUsageDescription&lt;/key&gt;
  &lt;string&gt;Precisamos de acesso a galeria para buscar a imagens&lt;/string&gt;
  </code></pre>
  <p>and the permissions on <code>Podfile</code>:</p>
  <pre><code>post_install do |installer|
  installer.pods_project.targets.each do |target|
  flutter_additional_ios_build_settings(target)
  target.build_configurations.each do |config|
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
    config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
      '$(inherited)',
  
      ## dart: PermissionGroup.calendar
       # 'PERMISSION_EVENTS=0',
  
      ## dart: PermissionGroup.reminders
       # 'PERMISSION_REMINDERS=0',
  
      ## dart: PermissionGroup.contacts
       #'PERMISSION_CONTACTS=0',
  
      ## dart: PermissionGroup.camera
       'PERMISSION_CAMERA=1',
  
      ## dart: PermissionGroup.microphone
      'PERMISSION_MICROPHONE=1',
  
      ## dart: PermissionGroup.speech
      # 'PERMISSION_SPEECH_RECOGNIZER=0',
  
      ## dart: PermissionGroup.photos
       'PERMISSION_PHOTOS=1',
  
      ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
  
       #'PERMISSION_LOCATION=1',
  
      ## dart: PermissionGroup.notification
      # 'PERMISSION_NOTIFICATIONS=1',
  
      ## dart: PermissionGroup.mediaLibrary
      # 'PERMISSION_MEDIA_LIBRARY=0',
  
      ## dart: PermissionGroup.sensors
       #'PERMISSION_SENSORS=0',   
  
      ## dart: PermissionGroup.bluetooth
       #'PERMISSION_BLUETOOTH=0',
  
      ## dart: PermissionGroup.appTrackingTransparency
       #'PERMISSION_APP_TRACKING_TRANSPARENCY=0',
  
      ## dart: PermissionGroup.criticalAlerts
      # 'PERMISSION_CRITICAL_ALERTS=0'
    ]
    end
   end
  end
  </code></pre>
  <p>My implementation when I open the camera:</p>
  <pre><code> handleTakePhoto() async {
  var status = await Permission.camera.status;
  print(status);
  if (status.isGranted) {
    final PickedFile pickedFile = await picker.getImage(
        source: ImageSource.camera, maxHeight: 675, maxWidth: 960);
    if (pickedFile != null) {
      editImage(pickedFile.path);
    }
  } else if (status.isDenied) {
    final PickedFile pickedFile = await picker.getImage(
        source: ImageSource.camera, maxHeight: 675, maxWidth: 960);
    if (pickedFile != null) {
      editImage(pickedFile.path);
    }
  } else {
    showDialog(
        context: context,
        builder: (BuildContext context) =&gt; CupertinoAlertDialog(
              title: Text('Camera Permission'),
              content: Text(
                  'This app needs camera access to take pictures for upload user profile photo'),
              actions: &lt;Widget&gt;[
                CupertinoDialogAction(
                  child: Text('Deny'),
                  onPressed: () =&gt; Navigator.of(context).pop(),
                ),
                CupertinoDialogAction(
                  child: Text('Settings'),
                  onPressed: () =&gt; openAppSettings(),
                ),
              ],
            ));
     }
  }
  </code></pre>