Notch display support (SOLVED)

#1

Just asking: Is there or do you consider support for displays with notches? I have an Android phone with notch and I recently saw some games (e.g. Supercell’s Clashes) that are displaying the game on the whole screen, while my game, even with Immersive mode checked in game.project, doesn’t utilize the top corners.

0 Likes

#2

Is it an option you can set in the Android manifest maybe?

1 Like

#3

You can copy/paste builtins/manifests/android/AndroidManifest.xml to your folder and then add this line:

<meta-data android:name="android.max_aspect" android:value="2.1" />

Right after , like this:

(Do not forget to change Manifest link in game.project)

3 Likes

#4

Unfortunately it doesn’t solve the problem, at least on my device (Honor Play, Android 8.1.0) :frowning:

0 Likes

#5

Unfortunately, I have no huawei with notch right now and I can’t check but this line in AndroidManifest should help :

<meta-data android:name="android.notch_support" android:value="true"/>

You can leave both lines:

<meta-data android:name="android.max_aspect" android:value="2.1" />
<meta-data android:name="android.notch_support" android:value="true"/>

(more information here p4.3)

4 Likes

Trouble with screen scaling on Android(#4295)(SOLVED)
#6

That’s the solution! Thanks, @AGulev

4 Likes

#7

Fixed in default AndroidManifest in Defold 1.2.160 has been released

5 Likes