Questions
Android Full Screen mode is lost after returning from background
Hello Median Support,
I have an Android app built with Median that loads my website. I enabled "Full Screen" in App Studio > Interface.
Problem:
- When I launch the app normally, Full Screen works correctly (status bar and navigation bar are hidden).
- When I leave the app (Home button / switch apps) and then return to it, the status bar comes back (gray bar with clock, battery, and icons). Full Screen mode is not restored.
What I tried:
- Calling median.android.screen.fullScreen() from JavaScript after the app resumes. It has no effect.
- Calling median.android.screen.normal() followed by median.android.screen.fullScreen(). Still no effect.
- Defining median_app_resumed() as described in your documentation. It was never called when returning to the app. The "visibilitychange" and "focus" events did not fire either.
- I confirmed that "median", "median.android.screen" and "median.statusbar" all exist in the page when the issue happens (the bridge is available).
- I detected the status bar by comparing window.innerHeight (788) to screen.height (820) after returning. At launch they are equal (820 and 820), so the bar is really visible.
Expected behavior:
The app should stay in Full Screen after returning from the background, as it does on first launch.
Device: Infinix phone
Android version: Android 10
Thank you.