Notch display support (SOLVED)

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.

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

1 Like

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

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

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

That’s the solution! Thanks, @AGulev

4 Likes

Fixed in default AndroidManifest in Defold 1.2.160 has been released

5 Likes