Topic was automatically imported from the old Question2Answer platform.
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?
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.
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.
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.