GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Audio on iOS not resuming properly after app goes in background

Open Jepl4r opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

Describe the bug

When opening the game and playing it the audio works fine for the entirety of the playthrough but, every time I exit the game leaving it in the recent apps list and reopen it from the latter the audio/ music stops playing.

I tested the game on an iPhone 15 Pro Max, iPhone SE 3rd Gen. and an 11" M1 iPad Pro. The results were the same on all three devices. As a last resort I tried on the Xcode simulator and it doesn't happen there.

I have two scenes and in both of them this bug occurs. This is what the event looks like in one of the scenes. I even tried three types of audio formats (WAV, OGG and MP3) Screenshot 2024-01-11 alle 16 44 01

Steps to reproduce

Compile the game for use with iOS utilizing Xcode and Cordova. Install the resulting .ipa file on the iPhone. Open the game and after some time exit leaving it in the recent apps list and the resume it.

GDevelop platform

Desktop

GDevelop version

5.3.186

Platform info

OS

iOS/ iPadOS

OS Version

17.2

Additional context

No response

Jepl4r avatar Jan 11 '24 17:01 Jepl4r

Interesting problem, but unsure what ios is doing to apps going into the background. Do you have the same problem with the action "Play music"?

ClementPasteau avatar Jan 18 '24 09:01 ClementPasteau

Same thing happens with Play Music

Jepl4r avatar Jan 18 '24 14:01 Jepl4r