Splash Screen not working Android 12

Vinay Choudhary 1 Reputation point
2022-04-13T15:31:52.677+00:00

I am using Xamarin Forms Splash screen using
<item name="android:windowBackground">@drawable/splash_screen</item> and creating a splash_screen.xml for it.
It was working fine until I migrated to Android 12. Now all I see is the blank screen when I load my Application.

Please help me as I am stuck as how to do it. There are articles for Android Studio but none for Xamarin Forms.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,363 questions
{count} votes

2 answers

Sort by: Most helpful
  1. JessieZhang-MSFT 7,711 Reputation points Microsoft Vendor
    2022-04-18T03:11:55.73+00:00

    Hello,

    Yes, it was a known issue about the splash-screen after android 12.

    But a prerelease version of Xamarin.AndroidX.Core.SplashScreen has been released 12 days ago.

    You can check it here: https://www.nuget.org/packages/Xamarin.AndroidX.Core.SplashScreen/1.0.0-beta02 .

    So, you can try to install and update nuget Xamarin.AndroidX.Core.SplashScreen.

    Best Regards,
    Jessie Zhang


    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

  2. Cezar Wagenheimer 11 Reputation points
    2022-05-24T17:24:31.837+00:00

    Hi JessieZhang-2116!

    To make it work with Android 12 do I only need to install Xamarin.AndroidX.Core.SplashScreen or do I need to do something else?


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.