MUAI Blazor App: A Blank "Screen" between splash page and login page.

Bianyu Wang 11 Reputation points
2023-01-06T18:14:57.55+00:00

Hi -

We are using MAUI+ Blazor to develop our mobile App.

One thing we notice is that as the app is starting, the splash screen shows, then it hides, then a very fast white flash shows right before the login page (or index page), because we are using dark background color on both splash screen and login page, this white flash becomes extremely visible and seriously affects the user experience, and also it is observable on both Android and IOS.

We have tried all possibilities, including changing the background color of the splash screen, the background color of the start page, none of them can solve the problem, we can even be sure that the white flash itself does not have any “physical” page...

As we don't see a way to change that in the project properties. Can you please give us any suggestions on how to remove the white flash as the app starts?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,387 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,866 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Bianyu Wang 11 Reputation points
    2023-01-09T01:35:38.8+00:00

    I set background color like this, in App.xaml

            <Style TargetType="BlazorWebView">  
                <Setter Property="Background" Value={the color I want} />  
            </Style>  
    

    now it works perfectly.

    2 people found this answer helpful.

  2. Bruce (SqlWork.com) 55,686 Reputation points
    2023-01-06T21:28:30.283+00:00

    I assume the white flash is the webview before content is loaded. set its DefaultBackgroundColor in the MAUI code.


  3. 刘 安 1 Reputation point
    2023-01-19T14:33:05.7+00:00

    BlazorWebView Background works well for Android. But it doesn't work for iPhones. On iPhone, it still has the splash white screen.