iOS background issue

I have an iOS App based on Capacitor 2.0, when I switch the App to background, I got the following error:

2021-03-13 23:59:32.088159+0800 App[6272:1754727] [ProcessSuspension] 0x10a1c5500 - ProcessAssertion: Failed to acquire RBS Background assertion ‘ConnectionTerminationWatchdog’ for process because PID is invalid

2021-03-13 23:59:32.088294+0800 App[6272:1754727] [Process] 0x103847418 - [pageProxyID=6, webPageID=7, PID=6273] WebPageProxy::processDidTerminate: (pid 6273), reason 3

2021-03-13 23:59:32.091266+0800 App[6272:1754727] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 “Target is not running or required target entitlement is missing” UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:“com.apple.webkit” name:“Background” sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}>

2021-03-13 23:59:32.091358+0800 App[6272:1754727] [ProcessSuspension] 0x10a1c5540 - ProcessAssertion: Failed to acquire RBS Background assertion ‘WebProcess Background Assertion’ for process with PID 6273, error: Error Domain=RBSAssertionErrorDomain Code=3 “Target is not running or required target entitlement is missing” UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:“com.apple.webkit” name:“Background” sourceEnvironment:"(null)">, NSLocalizedFailureReason=Target is not running or required target entitlement is missing}

2021-03-13 23:59:32.108955+0800 App [ 6272:1754727 ] [ Loading ] 0x103847418 - [ pageProxyID=6, webPageID=7, PID=6273 ] WebPageProxy::dispatchProcessDidTerminate: reason = 3

Is this issue is related to capacitor webkit view or I missed something?

Any help is appreciated.

5 Likes

I got the same issue with cordova and iPhone 11 PRO and iPhone 11 Mini (real devices).
On emulator it works perfectly and on other devices as well.

@codiqa10004113 : could you somehow solve this issue?

In my case the screen is flashing black and white when I open a dc-Tableview.js table (by adding and removing “diplay:none”).

Edit:
I opened a stackoverflow question here - maybe it helps:
https://stackoverflow.com/questions/67571345/ios-iphone-11-flashing-black-and-white-while-browsler-is-constantly-reloading-r

@findMarcel thanks for the stackoverflow post, unfortunately the solutions on them haven’t worked for us so far.

We’re testing on a physical device, iPad Air on the latest iOS version 14.7.

Were you able to find a solution elsewhere?

thanks

1 Like

The problem still exists, and happened more and more frequently. :frowning:

Really expecting a solution.

1 Like

No solutions for this issue ?

Also still getting this issue. None of the solutions in the stackoverflow post resolved it.

Xcode 13.2 seems to solve the audio playback in the background.

It still doesn’t allow the audio record in the background which is essential for a VoIP application.

2 Likes

I am also having this issue. Xcode 13.2 has fixed the problem with receiving audio when I send the Capacitor app to the background, but the microphone still does not work when the app is in the background. Also, I do not see the orange dot at the top of the iOS screen, letting me know that the microphone is active when the app is in the background.

did you find a solution to this problem? it’s happening on ionic + capacitor latest version on ios 16.2

1 Like