Hello.
Preface: so far I’ve only tried it on Android, but the problem is clearly common.
For export to Android there is an option "Hide status bars", and it works great, but the front camera hides the header of all pages in my application
All I found on the Internet were questions from many years ago with scary and complex solutions. Either few people are trying to export C3 to phones, or I'm a fool). The simplest solution is not to set the "Hide status bars" option, but in this case I am not happy with the fact that there is a nav bar at the bottom.
In addition, I realized that PlatformInfo has the ability to find out the positions of the safe area. And on my Android SafeAreaInsetTop even gives the number 36, even with the "Hide status bars" option active.
But two problems arise:
1) how can I now dynamically (it may be different on different phones, but not at all on a PC) lower my entire layout and at the same time compress the canvas, taking into account the cutting off at the top? And at best, there’s some way to take into account the cutouts on other sides - but that’s not even in my head anymore
2) My game has pixel graphics. Size settings: 120 x 240. And I generally don’t understand what I should do with this number 36.
It's stupid, but I tried to change the size and position of the canvas using CSS, which ultimately worked very crookedly)
Also my settings:
Viewport fit: Cover/Auto
Fullscreen mode: Scale out
Orientations: Portrait
Why can’t I immediately display the “safe area only” option when exporting? PlatformInfo is the official plugin from c3 and you can do what you need yourself
This is clearly a problem. And it seems like it's been going on for a long time. This is critical for mobile applications. I'm waiting for a decision. Thank you
PS: Google translate