echonox opened a new issue #1024:
URL: https://github.com/apache/cordova-ios/issues/1024
# Bug Report
## Problem
Doing non async ajax request causes a crash in the wkwebview:
**Could not signal service com.apple.WebKit.WebContent: 113: Could not find
specified service**
Doing async ajax request works fine
### What is expected to happen?
wkwebview doesn't crash and the ajax request succeeds
### What does actually happen?
wkwebview crashes (causes sort of reload/restart of the wkwebview)
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
in config.xml i included the needed preferences:
`<preference name="scheme" value="app" />`
`<preference name="hostname" value="localhost" />`
so my local files are loading (index.html, css, images, js and etc)
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
`var xhttp = new XMLHttpRequest();`
`xhttp.onreadystatechange = function() {`
` console.log(this);`
` };`
` xhttp.open('GET', './local-file.json', false);`
`xhttp.send();`
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Environment: iOS
Platform: IOS
Device: iPhone 5S
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
XCode: 12.2 Beta
OS: BigSur 11.0 Beta
Cordova CLI: 10.0
Platform: 6.1.0
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-whitelist 1.3.4 "Whitelist"
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]