Hey thanks Mananuk that’s nice of you to say <3
The black bars you’re seeing could be because the aspect ratio you created your game in is different than the aspect ratio of your device. And you may have put “No changes to the game size” in your properties or something in game events.
The manual build method torsh kindly shared is specifically for making your game window draw into the notch on a device. Sadly it is not intended or able to take a game made in one aspect ratio and make it fit on a device with another aspect ratio.
I tried it again today, and at least on my device I can’t tell if it’s working. If I change my device settings to not display into the notch, it does not. It seems to me to behave exactly as just setting my app to “Change width to fit screen size” in game properties.
However, to test further, I substituted
item name=“android:windowLayoutInDisplayCutoutMode” shortEdges /item
with its opposite
item name=“android:windowLayoutInDisplayCutoutMode” never /item
and that did work. Even though my project was “resize to fit” and even though I changed my device settings to display into the notch in “supported apps”, it would not display into the notch area but sized to fit the rest of the screen instead. I’m mentioning that here because that could be useful to someone that wants resize to fit but has problematic UI that the notch can blot out.
I’m not sure of the best way to deal with the black bars/letterboxing. I think either ignoring them or making your game to be adaptive. For instance a decorative border around your actual game. I had done a tutorial awhile back but here is a thread about it and I really think Silver-Streak explains it very succinctly and well. There is also another method listed in the replies below that one, and you may find useful.
Add an image around the game to replace the black border frame? - How do I…? - GDevelop Forum