Skip to content

Conversation

@mattleibow
Copy link
Member

@mattleibow mattleibow commented Jan 15, 2023

Description of Change

Make sure iOS always has a splash screen as this is required to tell the OS that this is a "modern" app and can use the full screen.

This should only be merged (after a rebase) after #12481 is merged.
Actual change in this PR c2a2edd

Issues Fixed

Fixes #11951
Fixes #14421

@mattleibow mattleibow changed the title Dev/ios no splash Ensure iOS always has the required splash storyboard Jan 16, 2023
Comment on lines -166 to +167
<!-- UWP / WinUI -->
<PropertyGroup Condition="'$(_ResizetizerIsUWPApp)' == 'True' Or '$(_ResizetizerIsWindowsAppSdk)' == 'True'">
<!-- Windows App SDK -->
<PropertyGroup Condition="'$(_ResizetizerIsWindowsAppSdk)' == 'True'">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just cleaning up comments and conditions. The $(_ResizetizerIsUWPApp) property was removed some time ago.

Comment on lines +351 to +354
<PropertyGroup>
<_MauiHasSplashScreens>false</_MauiHasSplashScreens>
<_MauiHasSplashScreens Condition="'@(MauiSplashScreen->Count())' != '0'">true</_MauiHasSplashScreens>
</PropertyGroup>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The is partially the fix. Since apps may need a splash in order to launch right, we actually always want to process a splash and create an empty one if none was found. For now, the other platforms have "ok" fallbacks - windows/maccat do not support splash, android just used the primary color and tizen needs to be tested still.

However, iOS always requires one so this PR makes this target always run, we just skip the steps for the other platforms. When building for iOS, we run the tasks as if we had a splash, and when the actual task is running it determines no splash was provided so generates an empty one.

This may also be nice if we detect no splash on Android, we can just use the app icon. But for now, this PR is for iOS.

@mattleibow mattleibow marked this pull request as ready for review January 18, 2023 18:20
@mattleibow mattleibow requested a review from Redth January 18, 2023 18:20
@mattleibow mattleibow merged commit 4805f8d into main Jan 19, 2023
@mattleibow mattleibow deleted the dev/ios-no-splash branch January 19, 2023 15:05
@PureWeen
Copy link
Member

/backport to net7.0

@github-actions
Copy link
Contributor

Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/4016833621

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! platform/ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maui app black screen in ipad (iPadOS 16.4) App shell does not fill screen on iOS when no splash screen is added to project.

5 participants