Flutter ios app submission: Missing Purpose String in Info.plist

I came across the same issue...

I'm using the permission_handler dependency.

Please carefully read the setup for iOS (Podfile and Info.plist)

https://pub.dev/packages/permission_handler

And pay special attention to this:

Remove the # character in front of the permission you do not want to use. For example if you don't need access to the calendar make sure the code looks like this:

## dart: PermissionGroup.calendar
'PERMISSION_EVENTS=0',

**** Update 29-Sep-2021 -- (Warning for version > 8.0.0)

permission_handler version 8 introduce some breaking changes for iOS (configuration is flipped)

The authors said:

we have changed the default behaviour of how permissions are treated in version 8.0.0

Note that specifically enabling permissions is only supported from version 8.0.0. In versions before 8.0.0 the logic was switch around and permissions where enabled by default and you had to explicitly disable permission in your podfile.

Author reference

See Changelog version 8.0.0

Please read very carefull all iOS setup instruction.


That's quite a big list of dependencies, so it's very likely that some of these require it, even though the code to request these permissions it will never be run. Apple just notices the code in the app, but can't figure out that it will not be executed.

If you're certain that these permissions will never be requested, you can add any text for the usage descriptions in the Info.plist, for example "Required usage description for a Flutter dependency". It shouldn't show up to the user, but at least the developers will know why this is filled in.

Tags:

Ios

Xcode

Flutter