apache / cordova-ios

Apache Cordova iOS
https://cordova.apache.org/
Apache License 2.0
2.16k stars 987 forks source link

WKWebview With Cordvoa(6.0.0-dev) can not load local html On iOS12 #865

Closed LynGao closed 4 years ago

LynGao commented 4 years ago

Bug Report

Problem

I used the current dev version(6.0.0-dev) to upgrade my Cordova. i found that it can open the local html file on ios13, but it cloud not run on ios12(12.1 , 12.4.5, 12.4.6).

Information

Here is the error msg : Error Domain=kCFErrorDomainCFNetwork Code=1 "(null)" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <9DA690E4-555A-47F6-A3E1-3F5541B78244>.<1>, _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x283090a80>}

Command or Code

Html struct: image

index.html image

CDVWebViewEngine.m with my modify: image

Corodva.js image

Environment, Platform, Device

All iOS Device in iOS12(12.1 , 12.4.5, 12.4.6).

Version information

Checklist

LynGao commented 4 years ago

This problem i had solve. I add these code like this: CDVWebViewEngine.m ====>

LynGao commented 4 years ago

This problem i had solve. I add these code like this: CDVWebViewEngine.m ====>