Bug 203293 - WKWebView: audio tag sound stops when app goes to background on iOS 13
Summary: WKWebView: audio tag sound stops when app goes to background on iOS 13
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 13
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-10-23 08:01 PDT by jcesarmobile
Modified: 2020-05-18 09:28 PDT (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jcesarmobile 2019-10-23 08:01:57 PDT
Current Behaviour:
When using an audio tag to reproduce sound on a WKWebView, the sound stops shortly after the apps goes to background.
Only happens on iOS 13 (including 13.2 beta).

Expected Behaviour:
Sound should continue with the app in background as it did on iOS 12 and older

Sample app reproducing the issue:
https://github.com/jcesarmobile/background-audio-bug

(note that the app has background mode enabled for audio and still doesn't prevent from pausing the audio)
Comment 1 Radar WebKit Bug Importer 2019-10-23 10:45:26 PDT
<rdar://problem/56544807>
Comment 2 Trent Brown 2019-11-29 02:42:10 PST
It appears that this is due to web audio from the wkwebview not having the same entitlement that safari has for background keeping background proccesses open.
Comment 3 Maxim Balyaba 2020-02-25 05:08:35 PST
Hello Trent Brown!
Do you mean that it is not an issue ?
Comment 4 Joe Moore 2020-03-04 10:07:39 PST
Can someone please acknowledge this? It's a new bug, as far as I am aware, introduced with iOS 13 (or possibly more specifically 13.2) and is impacting countless applications and developers worldwide, myself included. Prior to this bug, audio playing on a page viewed in webkit worked perfectly fine, even after backgrounding the app or putting the phone to sleep. We have a significant amount of content that is nearly unusable as a result of this bug.
Comment 5 JTerr 2020-04-15 14:23:16 PDT
I am having this issue as well, is there any fix coming soon?
Comment 6 Pedro Furtado 2020-05-18 09:28:20 PDT
Any news in this issue? It affects ALL hybrid apps that play sounds in background in IOS environment.