Simple repro site at https://ios-standalone-bug.backgroundnoise.app
1. Write a web app that Includes an HTML <audio> element
2. Pin it to home screen on iOS with display:standalone in manifest.json
3. Launch the web app
4. Play the audio
5. Leave the web app
Audio keeps playing
Audio stops playing.
NOTE: If you play the audio in Safari and leave Safari it keeps playing in the background. This only affects standalone web apps/PWAs
I'm also having this problem on https://podcatcher.app/
Please get this on somebody's list. We have a very popular PWA with limited functionality on iOS 13 due to no background audio!
We use WKWebView in our app, and we also have this bug. I've looked sources for a little, and it seems that it is not actually a webkit bug, but something in iOS. Safari manages media via some complicated mechanisms, so it doesn't reproduces there.
Please get somebody to work on the fix for this issue, this bug blatantly prevents users to have the same experience as native app users.
Same Problem on my progressive Web app based on audio content. It was perfectly working with previous IOS. It's a huge step backwards for user experience.