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.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}
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.