UnityShowAndroidStatusBar: [BUG] Issue with Huawei P20 Pro & Unity 2018.3

Hello, I have an issue with Huawei P20 Pro and Unity 2018.3 and your plugin. On Unity 2017.4.21 with a simple script with fullscreen = false; I change only one thing in your value xml files. It’s the “.Light” that I have removed to have a full opaque display.

I have this display on the screen : screenshot_20190304_112040_com ubiant screen

where with Unity 2018.3.4 I have this : screenshot_20190304_112004_com ubiant screen

My script is quite simple :

using UnityEngine;
using TMPro;

public class ScreenDetection : MonoBehaviour
{
	public TextMeshProUGUI text1;
	public TextMeshProUGUI text2;

	private void Awake()
	{
		Screen.fullScreen = false;
	}

	// Start is called before the first frame update
	void Start()
    {
		text1.text = "Screen size : " + Screen.width + " // " + Screen.height;
		text2.text = "Safe size : " + Screen.safeArea.width + " // " + Screen.safeArea.height;
	}
}

Is it something to solve in your plugin or is it an Unity issue ?

Is there a way to detect when the device doesn’t have physical input but only soft display directly on the screen to redefine the the “safescreen” area cause Android seems to get rid of this when I use the Unity variable (due probably to OS limitation)

thanks in advance @Over17 !

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 24 (11 by maintainers)

Most upvoted comments

Okay looks like I’ve fixed the bug in Unity. It will take some time to take it into 18.3, 19.1, 19.2 and 19.3.

Fix landed into 2019.1.2f1.

Okay I identified the change in Unity which caused this behavior - it’s the Android notch support. Digging further.