In iOS Safari, when the device is in landscape the gameCanvas resizes itself nicely using the SHOW_ALL policy. However when I tap on the top/bottom part of the screen Safari’s URL/navigation bar appear and hide those parts of my game screen. AFAIK it is not possible to remove them so I am looking for a way to simply resize my gameCanvas to fit between the bars.
Naturally I’d have to use window.innerWidth/window.innerHeight to determine the amount of viewable space I have minus the url/navigation bar. Cocos’ own resizing event however seems to fall back on the frame size which includes the space taken up by those 2 bars and thus after the resizing event finishes running I am still left with a clipped gameCanvas. Would I have to define my own ContainerStrategy (and in turn resolutionPolicy) to achieve this? If so I’m kind of lost in doing it correctly.