GDevelop
GDevelop copied to clipboard
Audio on iOS not resuming properly after app goes in background
Is there an existing issue for this?
- [x] I have searched the existing issues
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)
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
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"?
Same thing happens with Play Music