Cordova Slack Digest

Tue, 15 Mar 2022 08:26:22 GMT

User count: 4687

Join the conversation at slack.cordova.io

Channel #cordova-ios (4 messages)


Mon, 14 Mar 2022 13:50:58 GMT

@norman137 says

> AFAIK there is no viable alternative to WKWebbView ? WKWebView is the only webview available on iOS. Apple does not allow apps to include their own browser rendering implementations.

> Or possibility to increase memory limit ? Afaik, there is no way to increase the memory limit, this is heavily governed by the OS based on available resources. There's also a hard per-app memory limit of 5GB, even if the device has well over 5GB of RAM available.

Quick google did find an https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_kernel_increased-memory-limit?changes=latest_beta&language=objc|entitlement that you might be able to justify using. This was only implemented in iOS 15 however. Even still, your app must still “work” without this entitlement. I have no idea if this entitlement will work with memory allocated by the webview.

Mon, 14 Mar 2022 15:42:27 GMT

@vdumontier says

Thanks for your feedback !

Here is an exemple of the trace :

2022-03-14 15:55:49.308826+0100 APP[2048:586396] [Process] 0x1070cc900 - [PID=2050] WebProcessProxy::didClose: (web process 2050 crash) 2022-03-14 15:55:49.309514+0100 APP[2048:586396] [Process] 0x1070cc900 - [PID=2050] WebProcessProxy::processDidTerminateOrFailedToLaunch: reason=4 2022-03-14 15:55:49.314059+0100 APP[2048:586396] [Process] 0x140037218 - [pageProxyID=11, webPageID=12, PID=2050] WebPageProxy::processDidTerminate: (pid 2050), reason 4 2022-03-14 15:55:49.404212+0100 APP[2048:586396] [Loading] 0x140037218 - [pageProxyID=11, webPageID=12, PID=2050] WebPageProxy::dispatchProcessDidTerminate: reason=4 2022-03-14 15:55:49.407704+0100 APP[2048:586535] [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}>

From what I see the app doent consume more than 40mo Or maybe webview is in another process that is not displayed on xcode ?

Mon, 14 Mar 2022 16:21:17 GMT

@vdumontier says

I found com.apple.WebKit.WebContent Can be up to 1,5Go before crashing, that must be the problem.

Mon, 14 Mar 2022 21:20:25 GMT

@dpogue says

Apple released iOS 15.4 today: https://webkit.org/blog/12445/new-webkit-features-in-safari-15-4/