Search code examples
iosipadblazorblazor-webassemblymaui-blazor

Blazor Hybrid MAUI iOS iPad/Tablet Only


How can I configure my Blazor MAUI Hybrid App .csproj to set that the app is designed for iPad/Tablet only (and not iPhone and phones etc)? I saw in this question it is possible: Setting a release as iPad-only on the Appstore but I don't know how to configure my app to set this property.


Solution

  • You could set it in Info.plist.

    In Visual Studio for Mac, there is a Target Device family, 1 is for iphone and 2 is for ipad. So just leave 2.

    In Visual Studio, choose iPad for Devices.

    For more info, you could refer to Compiling for different devices in Xamarin.iOS and UIDeviceFamily .

    Hope it works for you.