NET MAUI Splash Screen Not Displaying logo.png on Android 14 and 15

Omkar Pawar 40 Reputation points
2025-01-08T10:00:35.2966667+00:00

I am developing a .NET MAUI application and facing an issue with the splash screen when installing the app on physical devices running Android 14 and 15. The splash screen only displays the purple background, but the logo.png image (with a white background) is not visible.

This issue occurs only after creating the APK and installing it on a physical device. The splash screen works as expected during debugging on both emulators and physical devices.

Expected Behavior: The splash screen should display logo.png with a white background.

Actual Behavior: The splash screen displays only the purple background without the logo.png image.

Steps I Have Already Tried:

  1. Deleted the bin and obj folders, then cleaned and rebuilt the project.

Additional Information:

  • The app targets devices running Android 14 and 15.
  • The logo.png file is located in Resources/Splash/ with Build Action set to MauiSplashScreen.
  • The issue persists across multiple devices but does not occur in debug mode.
  • GitHub Repo :- https://github.com/IX-OmkarP/SplashScreenIssue
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,807 questions
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 78,351 Reputation points Microsoft Vendor
    2025-01-10T02:24:04.9266667+00:00

    Hello,

    ===========Update==========

    but I am unable to set a white background. How can I set a white background?

    Please open the styles.xml in the Platforms/Android/Resouces/values and add this <item name="android:windowSplashScreenBackground">@android:color/white</item> line in the <style name="CustomSplashTheme" parent="Maui.SplashTheme">

    Firstly, before you install the new generated APK, please uninstall it manually.

    Then, We can try to set splash logo by native android's way. Please create a folder called Drawable in the /Platform/Android/Resouces path, then copy the logo.png to the /Platform/Android/Resouces/Drawable folder, make sure logo.pngs build cation is AndroidResource.

    enter image description here

    After that, open the styles.xml in the Platforms/Android/Resouces/values, set the logo by <item name="android:windowSplashScreenAnimatedIcon">@drawable/splashlog</item> like following code.

    <?xml version="1.0" encoding="utf-8" ?>
    <resources>
    <style name="CustomSplashTheme" parent="Maui.SplashTheme">
     
        
    <!--To turn off the highlight color-->
    <item name="android:colorControlHighlight">@android:color/transparent</item>
    <!--To turn off the application title bar-->
    <item name="windowNoTitle">true</item>
    <!--To enable working with SplashScreen-->
    <item name="android:windowBackground">@drawable/maui_splash</item>
     
     
         <!-- Copy your splash icon to the /Platform/Android/Resouces/Drawable folder, and set the buildaction to AndroidResource-->
    
    <item name="android:windowSplashScreenAnimatedIcon">@drawable/logo</item>
     
        </style>
    </resources>
    

    In the end, please set your build action to the Release, release your application, re-publish your application and generated your APK. By the way, you can refer to this Publish an Android app for ad-hoc distribution document.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Omkar Pawar 40 Reputation points
    2025-01-12T14:21:36.21+00:00

    Thank you for your replies. Sorry for replying late. it is working now. If required, I will again reach out to you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.