Post

Replies

Boosts

Views

Activity

Reply to iOS Camera access issues in Developer mode on real device - PermissionStatus.permanentlyDenied
Looks like I had to modify iOS/Podfile to make this work # --- BEGIN: permission_handler camera macro --- # The following block explicitly enables camera permission for the permission_handler plugin. # Remove or comment out this block if you want to revert to default behavior. 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['GCC_PREPROCESSOR_DEFINITIONS'] ||= [ '$(inherited)', 'PERMISSION_CAMERA=1', # <-- Explicitly enable camera permission ] end end end # --- END: permission_handler camera macro ---
May ’25