Skip to content

iOS

When the MAUI permission presets aren’t enough, you can declare iOS Info.plist entries directly with typed values.

<ItemGroup>
<!-- String values -->
<InfoPlistPermission Include="NSCameraUsageDescription" Type="string" Value="We need camera access for video calls" />
<InfoPlistPermission Include="NSLocationWhenInUseUsageDescription" Type="string" Value="Your location helps us find nearby places" />
<!-- Boolean values -->
<InfoPlistPermission Include="UIRequiresPersistentWiFi" Type="boolean" Value="true" />
<!-- String array values (semicolon-delimited) -->
<InfoPlistPermission Include="LSApplicationQueriesSchemes" Type="stringarray" Value="fb;instagram;twitter" />
<!-- Integer array values (semicolon-delimited) -->
<InfoPlistPermission Include="UIDeviceFamily" Type="integerarray" Value="1;2" />
</ItemGroup>
MetadataRequiredDefaultDescription
TypeNostringValue type: string, boolean, stringarray, or integerarray
ValueNoemptyThe entry value. For arrays, separate items with ;
<plist version="1.0">
<dict>
<key>NSCameraUsageDescription</key>
<string>We need camera access for video calls</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location helps us find nearby places</string>
<key>UIRequiresPersistentWiFi</key>
<true/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>fb</string>
<string>instagram</string>
<string>twitter</string>
</array>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
</dict>
</plist>