So, I have a use-case in which if an Android phone has a notch, I do not want anything to be shown in the top bar. By default, most phones handle this situation without writing additional code. Eg: New Moto G phones with a Notch. But some phones don’t: Like Galaxy A70.
I have upgraded my Cocos 2DX version to the latest and put the game within the getSafeAreaRect
rectangle. This works well on the A70, but there’s a double notch adjustment on the Moto phone(since the phone already handles the game within the area). Any guidance on how I can handle this situation is appreciated. I tried Android with Notch simulator too, and it seems to work fine on a Galaxy Note 9(without the getSafeAreaRect
API), as the game scaled within the non Notch area by default, and doesn’t go fullscreen. Is this bug specific to Infinity Displays?