Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.dev7 Android Export Immersive Mode Not Working #101238

Closed
SoloRobo opened this issue Jan 7, 2025 · 3 comments
Closed

4.4.dev7 Android Export Immersive Mode Not Working #101238

SoloRobo opened this issue Jan 7, 2025 · 3 comments

Comments

@SoloRobo
Copy link

SoloRobo commented Jan 7, 2025

mrp-44.zip

Tested versions

Reproducible on v4.4.dev7.official [46c8f8c]
Not reproducible on v4.3
Not reproducible on v3.6

System information

Godot v4.4.dev7 - Fedora Linux 41 (Workstation Edition) on Wayland - X11 display driver, Multi-window, 2 monitors - Vulkan (Forward+) - integrated AMD Radeon 780M (RADV GFX1103_R1) - AMD Ryzen 7 7840U w/ Radeon 780M Graphics (16 threads)

Issue description

Android export, Immersive Mode not working

Steps to reproduce

Create a Godot Project
Create an Android Export
Set "Immersive Mode"
Export to Andorid
Notification tray and OS navigation icon/bar still visible

Minimal reproduction project (MRP)

I created a fresh Godot project as an MRP which is unable to reproduce this issue.
I've spent some time attempting to "clean" my project which was auto upgraded from 3.6 to 4.4 and even running a basic MRP scene as the main scene but the Immersive Mode doesn't work.
The same project on 4.3 doesn't exhibut the issues, but it does appear on 4.4devv7

@syntaxerror247
Copy link
Member

syntaxerror247 commented Jan 7, 2025

@SoloRobo are you setting window mode in your project? See https://docs.godotengine.org/en/latest/classes/class_displayserver.html#class-displayserver-method-window-set-mode

DisplayServer::set_window_mode() is now hooked to immersive mode, so immersive mode can now be enabled/disabled at runtime.

@SoloRobo
Copy link
Author

SoloRobo commented Jan 8, 2025

@SoloRobo are you setting window mode in your project?

@syntaxerror247 Genius!

Yes as I am doing some checks for Android & Desktop, however, it was blind setting the window mode to "Windowed" irrespective of OS based on an unset configuration option. That is now in a Desktop check and the immersive mode is now working on Android.

Thank you.

Curious it is not a problem on 4.3

@SoloRobo SoloRobo closed this as completed Jan 8, 2025
@syntaxerror247
Copy link
Member

Curious it is not a problem on 4.3

The set_window_mode() method is updated in 4.4 to toggle immersive mode, it wasn't the case in version 4.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants