@renerheaume wrote:
I recently updated my Mac system from macOS 10.12.6 with Xcode 9.2 and iOS SDK 11.2 to macOS 10.13.6 with XCode 10.1 and iOS SDK 12.1 (cannot update to a more recent macOS right now).
My Ionic app was using UIWebView. Keyboard stopped working. When I restored the older macOS and rebuild Cordova, it worked again. But we all know UIWebView is deprecated so I started to migrate to WKWebView built against the newer iOS SDK. Keyboard still does not work. I tried and checked the following:
- Put
NSAllowsArbitraryLoads
inInfo.plist
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
Adding
cordova-plugin-wkwebviewxhrfix
from https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfixEditing the Cordova library source code, to replace the call to
loadFileUrl
method with loadRequest even for file:// URLs, as hinted at https://github.com/syrjs/core/blob/develop/ios/SyrNative/SyrNative/SyrBridge.m
Posts: 1
Participants: 1