Skip to content

Commit 765a2e9

Browse files
committed
(Example iOS): Fix microphone permission not being granted
For some reason, iOS now requires this extra step to ensure that the microphone permission works as intended.
1 parent e9304ea commit 765a2e9

File tree

1 file changed

+9
-0
lines changed
  • example/push_notifications/ios

1 file changed

+9
-0
lines changed

example/push_notifications/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+
target.build_configurations.each do |config|
42+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
43+
'$(inherited)',
44+
45+
## dart: PermissionGroup.microphone
46+
'PERMISSION_MICROPHONE=1',
47+
]
48+
end
4049
end
4150
end

0 commit comments

Comments
 (0)