Replies: 1 comment
-
Apparently my issue is a combination of factors.
After applying the proposed change from this thread ad the end of the ...
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
+
+ target.build_configurations.each do |config|
+
+ # Remove unused permissions here
+ # for more infomation: https://github.com/Baseflow/flutter-permission-handler/blob/develop/permission_handler/ios/Classes/PermissionHandlerEnums.h
+ # e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=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=0',
+
+ ## dart: PermissionGroup.microphone
+ # 'PERMISSION_MICROPHONE=0',
+
+ ## dart: PermissionGroup.speech
+ 'PERMISSION_SPEECH_RECOGNIZER=0',
+
+ ## dart: PermissionGroup.photos
+ # 'PERMISSION_PHOTOS=0',
+
+ ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
+ 'PERMISSION_LOCATION=0',
+
+ ## dart: PermissionGroup.notification
+ # 'PERMISSION_NOTIFICATIONS=0',
+
+ ## dart: PermissionGroup.mediaLibrary
+ 'PERMISSION_MEDIA_LIBRARY=0',
+
+ ## dart: PermissionGroup.sensors
+ 'PERMISSION_SENSORS=0'
+ ]
+ end
end
end |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After installing
firebase_messaging
, Apple will start rejecting binaries:ITMS-90683: Missing Purpose String in Info.plist
NSContactsUsageDescription
NSCalendarsUsageDescription
NSAppleMusicUsageDescription
NSMotionUsageDescription
NSSpeechRecognitionUsageDescription
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
The only capability that I need is to send push notifications.
Being forced to add dummy messages to explain why we use something that we don't use, makes no sense.
Is there a way to drop these permissions and simply ignore them?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions