dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.97k stars 1.72k forks source link

MAUI Splash screen does not take full screen size Xiaomi device #23878

Open ibrahimahmed1998 opened 1 month ago

ibrahimahmed1998 commented 1 month ago

Description

I tried to make splash screen to take full screen size of Xiaomi device but it appears like a small box I tried to get a large value of Base size to be able to test the full fill of screen

`

`

058f2706-c795-49c6-ab0e-4c1a0523ec3c

MIUI Version : MIUI Global 14.0.01 Android Version:12 SKQ1.211.006.001

MainActivity.cs Code:

public class MainActivity : MauiAppCompatActivity
 {
        protected override void OnCreate(Bundle savedInstanceState){
             base.OnCreate(savedInstanceState);
HandleIntent(Intent);
CreateNotificationChannelIfNeeded();
        }
    protected override void OnNewIntent(Intent intent)
    { base.OnNewIntent(intent);  HandleIntent(intent); }

    private static void HandleIntent(Intent intent)
    {
        FirebaseCloudMessagingImplementation.OnNewIntent(intent);
    }

    private void CreateNotificationChannelIfNeeded()
    {
        if (Build.VERSION.SdkInt >= BuildVersionCodes.O)
        {
            CreateNotificationChannel();
        }
    }

    private void CreateNotificationChannel()
    {
        var channelId = $"{PackageName}.general";
        var notificationManager = (NotificationManager)GetSystemService(NotificationService);
        var channel = new NotificationChannel(channelId, "General", NotificationImportance.Default);
        notificationManager.CreateNotificationChannel(channel);
        FirebaseCloudMessagingImplementation.ChannelId = channelId;
        //FirebaseCloudMessagingImplementation.SmallIconRef = Resource.Drawable.ic_push_small;

AndroidManifest.xml Code:

`<?xml version="1.0" encoding="utf-8"?>

` ### Steps to Reproduce I tried to make splash screen to take full screen size of Xiaomi device but it appears like a small box I tried to get a large value of Base size to be able to test the full fill of screen ` ` ![058f2706-c795-49c6-ab0e-4c1a0523ec3c](https://github.com/user-attachments/assets/25ebedc7-168d-495b-9228-23252e7545e1) ### Link to public reproduction project repository _No response_ ### Version with bug 8.0.10 SR3 ### Is this a regression from previous behavior? No, this is something new ### Last version that worked well Unknown/Other ### Affected platforms Android ### Affected platform versions _No response_ ### Did you find any workaround? _No response_ ### Relevant log output _No response_
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ibrahimahmed1998 commented 1 month ago

still exists after attached links

RoiChen001 commented 3 weeks ago

I can repro this issue at Xiaomi device on the latest 17.12.0 Preview 1.0(8.0.80 &8.0.72 & 8.0.10).