iOS & Android Export Issues

Hello,

A few days ago, I made a forum post explaining that I was seeing multiple issues when exporting my game to mobile. Specifically, on iOS via TestFlight, the width did not conform to the screen despite being set to do so, the game would try to go into portrait mode despite being told not to do so, and on both versions, if the game lost focus for more than a few seconds or the phone is put in sleep mode, the audio would completely go away.

Here is the link to the forum post. I’m also copying the full descriptions of the issues from said post below:

"1: App goes to portrait but is set to Landscape

The project is configured for Landscape orientation. However, if I rotate the phone into portrait mode while the game is running, the game responds to the orientation change instead of remaining locked to landscape.

image

image1122×161 8.29 KB

Since the game was designed for a landscape layout, a large part of the game is cropped off-screen. Rotating the phone back to landscape gives back the right view.

I want the game to stay in landscape regardless of how the phone is being held, while still allowing the user to rotate between the two landscape orientations.

Here is a video detailing what I’m talking about:

2: The game does not stretch across the screen

I’ve attached screenshots showing what I mean. Even when the game is being displayed correctly in landscape, it appears that the game is not using the full width of the screen.

Here is what it currently looks like on the phone’s entire screen:

image

image2048×945 178 KB

image

image2048×945 202 KB

image

image1920×886 182 KB

image

image1920×886 483 KB

Could it be related to the orientation problem described above?

I have it set to put the game in fullscreen at the start. Here is the event on the starting scene:

image

image1360×107 10.1 KB

3: Audio stops after leaving and returning to the app

If I briefly leave the app and then return to it without fully closing it, the game resumes normally, but the audio no longer plays. The game itself continues functioning as expected. Only the audio appears to be affected.

Here is a video for reference. You will need volume for it to make sense."

After talking to some of the people in the other post, we seem to have reached the consensus that it is a bug in GDevelop’s one-click packaging for iOS and Android. If you make a game with the orientation settings and plays any sort of sound on a channel, you should be able to replicate it.

Thank you.

Hello!

Thank you for reporting, and for the detailed screenshots and explanations, this helps a lot.
We’re looking at those 3 issues, iOS is notoriously tricky!

Orientation issues should be fixed in next release: Fix Screen orientation parameter on iOS devices by ClementPasteau · Pull Request #8774 · 4ian/GDevelop · GitHub
Full screen too, and sound resume as well (when going to background and back)
Some limitations still exist when the power button is used while the app is running, no fix found yet.

Finally got around to making a TestFlight build today as I replied I would in the other post, exact same issues. Glad to hear it’s been fixed already!

Additionally I had a random crash on application launch (0x0000000000000000, nullptr exception I assume). It’s only happened once so far.

Though I experience that the game doesn’t always launch/load the scene upon launching the application, and instead I’m met with what appears to just be an infinite black screen.

Unsure if these issues are related, it’s random on launch and not super frequent like a 1/10 for the black screen.

Not the most pressing of issues but I felt it was worth mentioning