Post not yet marked as solved
We're having problems in iOS 15.0+ with WKWebView and this assertion:
[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}>
[ProcessSuspension] 0x116004e40 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=11505, 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}
No problems for iOS versions < 15, and disabling this feature fixed the issue for us. We are looking to understand if this feature is intended to be enabled as part of iOS 15's official release. Curious if there is any insight available.
Post not yet marked as solved
Hello Guys,
Our application has default web browser entitlement:
com.apple.developer.web-browser. However, I am not seeing it in Desktop Safari's Developer menu, I am using iPadOS 16 beta 2(20A5303i), Web Inspector is enabled in Safari's Advanced menu.
Do we need to do some additional updates like rebuilding app with Xcode 14 or build that we currently have in AppStore should work without any modifications?
Post not yet marked as solved
Hello,
I have used WKWebview inside my tableview cell and given constraint inside my xib file.
I am loading html text in webview which i get from server side in api and i have taken webview height constraint property for update height on did finish delegate method.
It's not working proper and not giving proper height and on scroll every-time it's rendering with different height.
My requirement is i want to display math equations and html content on webview with dynamic height of cell.
I have done research and tried everything but it's not working.
I am using below code for update webview height.
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
webView.evaluateJavaScript("document.readyState", completionHandler: { (ready, error) in
if ready != nil {
DispatchQueue.main.asyncAfter(deadline: .now()) {
webView.evaluateJavaScript("document.body.scrollHeight") { [weak self] (result, _) in
guard let self = self, let result = result as? Double else { return }
self.webViewHeightConstraint.constant = CGFloat(result)
self.webView.updateConstraints()
}
}
}
})
}
Please help me to solve this issue.
Thank you
Post not yet marked as solved
We're having problems in iOS 15.0+ with WKWebView and this assertion:
[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}>
[ProcessSuspension] 0x116004e40 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=11505, 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}
No problems for iOS versions < 15, and disabling this feature fixed the issue for us. We are looking to understand if this feature is intended to be enabled as part of iOS 15's official release. Curious if there is any insight available.
Post not yet marked as solved
Hello,
We are running a complex web application built with React and related ecosystem. this web application is essentially a PWA and it is offline first. So, It relies heavily on service worker, indexDB database, cache storage, local storage etc.
We are running this web application inside a WKWebView which resides in a native iOS App. We have noticed that WKWebView is highly unreliable when it is running such a complex web app.
some of the behaviours noticed are
only blank screen is shown with no content loaded from the url
when url is pointed to different location (say uat, qa, prod environments) in the same wkwebview at run time, it causes data corruption as part of indexdb. it seems that it is not keeping different sets of data for different urls.
when registering newer version of service workers, wkwebview errors out and can not proceed with new registrations
does not always show a target page when a react app programmatically navigates to different locations within the web app.
I am interested in knowing from fellow iOS developers that
have you previously experienced above with WKWebView?
is WKWebView a good option for running such a web application or SFSafariView is the better alternative?
thank you
Dilip
Post not yet marked as solved
I just published a wkwebview app. But the app is only compatible with ios 15.0 and above.
Please tell me, how can I update my app to make it compatible with older ios versions?
Post not yet marked as solved
WWDC22 "What's new in WKWebView"
https://developer.apple.com/videos/play/wwdc2022/10049/?time=470
inspect and debug it yourself in third-party browsers on iOS,
When I say third-party browsers, I mean on iOS16, you can use third-party browsers ,like use chrome browsers to debug my website?
thinks!
Post not yet marked as solved
Only one particular URL does not load in the webview. Every other URL works. Not able to trace the issue but the console logs indicate the following error. Can anyone help around with this please?
Provisional navigation does not even start.
Logs:
default 11:18:42.686145-0400 WebViewTest -[SOConfigurationClient _reloadConfig] on
default 11:18:42.686180-0400 WebViewTest -[SOClient configurationWithCompletion:] on
default 11:18:42.686886-0400 WebViewTest configurationWithCompletion: success = YES, error = (null)
default 11:18:42.688152-0400 WebViewTest client.trigger:#N CCFG for cid 0x62 has # of profiles: 0
default 11:18:42.688756-0400 WebViewTest 0x7ff7b095a658 - WKSOAuthorizationDelegate::setSession: (existing session = 0x0, new session = 0x11401c400)
default 11:18:42.688785-0400 WebViewTest 0x11401c400 - [InitiatingAction=Redirect][State=Idle] SOAuthorizationSession::shouldStart: m_page=0x7f8fe384a220
default 11:18:42.688811-0400 WebViewTest 0x11401c400 - [InitiatingAction=Redirect][State=Idle] NavigationSOAuthorizationSession::shouldStartInternal: m_page=0x7f8fe384a220
default 11:18:42.688863-0400 WebViewTest 0x11401c400 - [InitiatingAction=Redirect][State=Idle] RedirectSOAuthorizationSession::beforeStart
default 11:18:42.688888-0400 WebViewTest 0x11401c400 - [InitiatingAction=Redirect][State=Idle] *NavigationSOAuthorizationSession::shouldStartInternal: Starting Extensible SSO authentication for a web view that is not attached to a window. Loading will pause until a window is attached.*
default 11:18:44.383363-0400 WebViewTest 0x114030800 - [PID=0] WebProcessCache::setApplicationIsActive: (isActive=0)\