Migrating to WKWebview gets kCFErrorDomainCFNetwork only on iOS 12.1 device

I am using a cordova based iOS app with following details.


cordova version - 9.0

cordova ios version - 5.0, 5.1., 5.1.1

iOS version - iOS 12.1

device - iphone 5s


I recently migrated to WKWebview from UIWebview. While using WKWebview the LoadRequest fails in didFailProvisionalNavigation with (kCFErrorDomainCFNetwork error 1.)

The very first time LoadRequest is always successfull, my app has an requiremnet to refresh the app sometimes after loading, to detect some UI files downloaded from server.

After download if I refresh the app to get new UI chanages, A loadRequest of WKwebview returns failure as didFailProvisionalNavigation with (kCFErrorDomainCFNetwork error 1.)

This happens only with WKwebview and only on iOS 12.1 device. Same app with WKWebView works absolutely fine on iOS 13 and iOS 12.4 devices.


I am using a FileUrl present in app bundle with LoadRequest and also made sure readAcess is enabled for that.


Is there any open bug or any workaround suggested for the issue.