Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5022510114406400: iOS 13 - WkWebView BUG: audio stops when in background #21311

Open
openradar-mirror opened this issue Sep 27, 2019 · 176 comments
Open

Comments

@openradar-mirror
Copy link

openradar-mirror commented Sep 27, 2019

Description

I've an app that uses WkWebView to play audio from Soundcloud and Mixcloud by using their javascript widget, on iOS 13.1 (13.0) the audio stops when the app is not in foreground, even when Audio is on in Background Modes.

When starting the playback this assertions is thrown:

Error acquiring assertion: <NSError: 0x282cf67c0; domain: RBSAssertionErrorDomain; code: 2; reason: "Required client entitlement is missing"> {
userInfo = {
RBSAssertionAttribute = <RBSLegacyAttribute: 0x1592432e0; requestedReason: MediaPlayback; reason: MediaPlayback; flags: PreventTaskSuspend | PreventTaskThrottleDown | WantsForegroundResourcePriority>;
}

And after entering background state the following assertion is thrown and audio suspended:

Can't end BackgroundTask: no background task exists with identifier 13 (0xd), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
[ProcessSuspension] Background task expired while holding WebKit ProcessAssertion (isMainThread? 1).

This is not happening in iOS 12, where the audio plays normally when in background.

https://forums.developer.apple.com/thread/121822

Product Version: ios 13
Created: 2019-09-27T21:26:41.717628
Originated: 2019-10-07T00:00:00
Open Radar Link: http://www.openradar.me/5022510114406400

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

29 similar comments
@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

29 similar comments
@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

@openradar-mirror
Copy link
Author

Modified: 2019-09-30T12:31:09.341166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant