Fullscreen on Galaxy S8/S9

Hello,

I want my app to use the full screen on Android devices with rounded screens like S8 or S9.

The default background of my app is white, and it’s running in “letterbox” mode. This works well on iOS (iPhone X), but on Android the app runs with black bars at the top and at the bottom.

I found this thread:

https://forums.coronalabs.com/topic/70798-enabling-samsung-s8-full-screen-mode/

The explained solution works, the app then uses the full screen.

However, the positioning of the AdMob Banner with “bottom” does not work correctly (it should be above the rounded edges of the screen but it is at the very bottom of the screen).

Manually placing the banner does not work either because display.actualContentHeigth and display.safeActualContentHeight return the same value (the value which should be display.actualContentHeigth).

It seems like the “safe” values are not supported on Android?

Is there any solution to this?

I’m using Corona Build 3432 on a Galaxy S9 with Android 8.0.

Best regards!

Until we can address safe zones on Android, you may need to detect if you’re on an S8 or S9 and add some padding to your attempt to manually position the ads.

Rob

Hi, I’m testing on a new Xiaomi redmi note 6 pro device which has similar rounded corners and a central notch like the iPhoneX but it seems the solution proposed here: https://forums.coronalabs.com/topic/70798-enabling-samsung-s8-full-screen-mode/ does not help expanding the image to the top area where the notch is. Is there any thing else needed to make it work?

Is there an update on this? We would like to release for Android and there are numerous devices with a notch now on Android. We cannot detect them by name. Can you implement support for cutout as indicated in this guide:

https://developer.android.com/guide/topics/display-cutout/

We are still working on the various Android build system updates, which gets us 64-bit support, Android 9 support, and other things. Once this is in place we can start looking at other API’s that need updating.

Rob

Until we can address safe zones on Android, you may need to detect if you’re on an S8 or S9 and add some padding to your attempt to manually position the ads.

Rob

Hi, I’m testing on a new Xiaomi redmi note 6 pro device which has similar rounded corners and a central notch like the iPhoneX but it seems the solution proposed here: https://forums.coronalabs.com/topic/70798-enabling-samsung-s8-full-screen-mode/ does not help expanding the image to the top area where the notch is. Is there any thing else needed to make it work?

Is there an update on this? We would like to release for Android and there are numerous devices with a notch now on Android. We cannot detect them by name. Can you implement support for cutout as indicated in this guide:

https://developer.android.com/guide/topics/display-cutout/

We are still working on the various Android build system updates, which gets us 64-bit support, Android 9 support, and other things. Once this is in place we can start looking at other API’s that need updating.

Rob