Skip to content

Commit 83751b7

Browse files
Fix #74: iOS missing camera permision grant when using scan QR code function
Signed-off-by: huynguyennovem <huynguyennovem@gmail.com>
1 parent 14dc1ee commit 83751b7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

ios/Podfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,14 @@ end
3737
post_install do |installer|
3838
installer.pods_project.targets.each do |target|
3939
flutter_additional_ios_build_settings(target)
40+
41+
# Start of the permission_handler configuration
42+
target.build_configurations.each do |config|
43+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
44+
'$(inherited)',
45+
## dart: PermissionGroup.camera
46+
'PERMISSION_CAMERA=1',
47+
]
48+
end
4049
end
4150
end

0 commit comments

Comments
 (0)