I have an action in my app prompted by a push notification. When the user taps the notification sometimes the content (in a WKWebView) fails to load. I haven't been able to reproduce this consistently so it's really hard to tell what's going on except to say that when it does happen I've been able to determine that the `didFailProvisionNavigation` method on my `WKNavigationDelegate` is called with the following error:
Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={_WKRecoveryAttempterErrorKey=, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <1432F4C3-CE99-4357-ABE1-0BA100F9947C>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=1}
Does anyone have any idea what this error means or what could cause it? The best I can guess is that maybe the resource I am trying to load is not available but that should not be the case and this error doesn't make sense to me.
drewster’s post reminded me I should post an update about the original issue. As far as I can tell the intermittent problem reported by paul.yorke is caused by a race condition associated with extending the sandbox of the networking helper process (r. 45456658). The best workaround we could find was to simply retry the load. That seems to work in the majority of cases.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"