Android nageation bar appearing when sliding top to bottom

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alexmp00

Hi guys!

I’m currently developing a Pokémon ranger like game for Android, however I have a problem because when I start sliding from the very top to bottom, android thinks that I want to show his top menu/navegation bar. Any way to avoid this?

Video of the issue : Android menu appearing

I workaround rotating the game 180º, so It’s bottom to top when the menu appears, but you have to play with the phone upside down, not actually a solution.

Thanks!

:bust_in_silhouette: Reply From: Juxxec

I think that this is an Android issue and is how the Operating System is made to work.

I tested this with a few games and on all of them I can swipe from the top to bring up the Notification Bar and the Navigation Bar (with the back and home buttons).

This was on Samsung Galaxy S20 FE running Android 12.

Additionally, I was thinking that Godot was not configured to use the Immersive mode of Android, but I can see in the Export parameters that Immersive mode is present and enabled.

P.S. This behaviour is to be expected. I went ot the Android Developers website and found this article: Cómo ocultar las barras del sistema para el modo envolvente  |  Desarrolladores de Android  |  Android Developers

As you can see, there is no way to disable this feature of Android.

You will have to modify your game to add some dead zone around the edges of the screen in your game, i.e. have the player use only the center of the screen so that they will not swipe down and bring up the Status Bar.