今天做阿里实人认证IOS接h5的时候报错
Error acquiring assertion:
2022-08-31 15:21:33.137980+0800 汇博招聘[776:19839] [ProcessSuspension] 0x128007660 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=786, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-08-31 15:21:33.155052+0800 汇博招聘[776:19839] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-08-31 15:21:33.155724+0800 汇博招聘[776:19839] [ProcessSuspension] 0x1280076c0 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=786, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
解决办法:
configuration.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeNone;
configuration.allowsInlineMediaPlayback = YES;