Hi Giderians,
A new release of Gideros is available, mainly a bug fix one.
Here are the changes:
Improvements[export/win32] Allow selecting console mode instead of outputing both binaries
[export/win32] Can now pack assets in a GApp file
Fixes[styles] Fix styled width/height/insets in setLayoutXXX functions
[export/apple] Fix incorrect screen size on player reload
Download it from here: http://giderosmobile.com/download
Comments
- update ios SKAdNetworkItems keys
as suggested by (at)John😉.
https://forum.gideros.rocks/discussion/8847/admob-skadnetwork-values-are-out-of-date
Viva Gideros!
I will try this release to check that issue.
Likes: MoKaLux
The project graphics settings have changed too, so before I dig further, can you double check you set 'Orientation' to 'Landscape' and 'Autorotation' to 'Normal and upside-down' ?
Likes: MoKaLux
and 'Autorotation' to 'Normal
- Normal orientation: allow only the orientation set in "Orientation" field (call it 0°).
- Normal and upside-down: allow two orientations, 0° and 180°
- All orientations: allow 0°,90°,180° and 270° rotations
- OS Fixed orientation: let the system decide, this is only meaningful for android and maps to the "nosensor" orienation mode.
So if you want both landscape right and left, you should use "Normal and upside down" in Autorotation.
project setting 640 * 960, letterbox landscape left Normal and upside-down, run on iPhone 12 max, the return value is
0 -719.3599853515625 960 1359.3599853515625
in portrait project it is correct
0 -88.8888931274414 640 1048.888916015625
Also application:getLogicalTranslateY() is not correct.
I think I found the issue about autorotation in iOS, I managed to reproduce the problem and I have a fix for it, meanwhile there is a workaround in lua whis is to call application:setOrientation(application:getDeviceOrientation()) after EVENT_RESIZE whenever getDeviceOrientation() returns a landscape orientation different from current orientation.
For your logicalbounds/safe area issues, it looks to me like your iphone started the app in portrait and you called the functions before ios/gideros changed the device orientation to the correct one. You could try to wait delay your init code a bit or recompute things after an EVENT_RESIZE event, or try to enable only landscape orientations in Xcode project / General settings.
To enable fullscreen, include the 'require' plugin and tick the appropriate box (Support non rectangular (notch) screen shapes).
And for the status bar, there is an application:set("statusBar",nil) call you can try, but I will investigate too since it should have been hidden by default in fullscreen mode.
Likes: MoKaLux
Likes: MoKaLux
Likes: MoKaLux
It's already set only landscape left and right yesterday and it return the wrong value.
the values get after first event of resize is not correct.
And the following resize event comes much later.
It's hard to set ui correctly on start up.
When rotate the device, a rotate animation will play and the content will be upside down.
Likes: MoKaLux
It will report several events resized and getDeviceOrientation return portrait until you rotate the device event if my exported iOS project only checked landscape. After you rotate the device, the workaround works.
Likes: MoKaLux