IOS history.replaceState() Error

1
Hello guys,  I have created .ipa file for an application, and after I run the app on a device, I'm getting an error (general error). I debugged .ipa file and here is the error from console:  ------------------------------------------------------------------------------ "phonegap-version" value="cli-7.1.0"   Error while applying context Error: Application.HomeScreen.setURL1: Error while applying context Error: Application.HomeScreen.setURL1: Error while applying context SecurityError: Blocked attempt to use history.replaceState() to change session history URL from file:///var/mobile/Containers/Data/Application/90569E5A-A091-4436-A615-920C76A1A116/Library/NoCloud/www/index.html to file: ///. Paths and fragments must match for a sandboxed document. http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:86159 collect@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:20:12751 applyContext@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:86056 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:85855 o@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:20:12464 sequence@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:20:12469 fireOnReady@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:85041 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:85819 collect@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:20:12751 loadWidgetsIn@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:85698 v@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:345363 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:344601 map@[native code] http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:344580 u@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:48678 s@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:48604 resolve@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:49622 l@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:49056 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:48956 u@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:48678 s@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:48604 resolve@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:5:49622 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:345402 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:32668 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:32496 o@http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:20:12690 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:51:32250 http://192.168.15.113:8080/mxclientsystem/mxui/mxui.js?636650891230067579:46:242225 promiseReactionJob@[native code] ---------------------------------------------------------------------------------- I've removed the WKWebView engine form the config.xml file, and, after that, the error is disappeared and it seems that everything works as expected.   I don’t know why the application doesn’t work properly with WKWebView. Also, the other application that uses WKWebView works without problems.    Does anyone have an idea what is the reason for this error and how to resolve this?  Thank you in advance.
asked
0 answers