Hello WebKit Team,
I’m writing to ask if iOS provides a native way to intercept AJAX (XMLHttpRequest or fetch) calls inside WKWebView.
On Android, this is handled via:
shouldInterceptRequest(WebView view, WebResourceRequest request)
but iOS currently seems to have no equivalent.
We’ve tried:
WKURLSchemeHandler → works only for custom schemes
URLProtocol with WKProcessPool → unreliable for AJAX in WebView
JavaScript injection → partial and unofficial
Could you please clarify:
Is there a recommended native approach to intercept AJAX requests?
If not supported, is it planned for future releases?
Any official workaround or guidance?
This is critical for debugging, analytics, and compliance in hybrid apps.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Created
Hey All,
i am getting this error, when i try to pic a picture from library and camera with the help of UIImagePickerController.
Anyone have any solution for this?
**2022-11-22 12:17:56.241155+0530 ---[10745:2313612] [core] "Error returned from daemon: Error Domain=com.apple.accounts Code=7 "(null)""
2022-11-22 12:17:56.245411+0530 ---[10745:2313614] [PAAccessLogger] Failed to log access with error: access=<PATCCAccess 0x281540780> accessor:<<PAApplication 0x2815403c0 identifierType:auditToken identifier:{pid:10745, version:30182}>> identifier:---kind:intervalEvent timestampAdjustment:0 visibilityState:0 assetIdentifierCount:0 tccService:kTCCServicePhotos, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection to service with pid 7261 named com.apple.privacyaccountingd" UserInfo={NSDebugDescription=connection to service with pid 7261 named com.apple.privacyaccountingd}**