In my iOS/Flutter app, I am using a QR reader plugin. My requirement is to recognize QR data from images only, not from the camera. But the plugin offers both.
So, I don't need the camera permission in my app and therefore I didn't add this to the Info.plist file.
Unfortunately, Apple refused the app due to Missing Purpose String: NSCameraUsagePermission.
Because I also integrated the plugin permission_handler, I have already added this to my podfile:
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
...
## dart: PermissionGroup.camera
'PERMISSION_CAMERA=0',
...
]
I thought this helps me with exactly the described issues: Add permission, a plugin requests but is not required in my app. Obviously, it does not.
Is there a way to achieve that: Deny the camera permission while using the requesting plugin nonetheless?