iOS10 http requests blocked?

Im getting an interesting lack of result when running my ionic 2 application in iOS 10. I have a shared service that I make all my requests through, it works great on Android and iOS 9.3. I have tested them both in Genymotion and Simulator. But when I test through iOS 10 in the simulator it just fails quietly. There is no message as to what is or is not happening. I checked my rest endpoint to see if the request is coming through, and nothing. I know iOS 10 is new, but Im not sure if Im missing some value in config.xml. This app is running WKWebview, so Im not sure if thats the culprit. I just can’t find any solutuion to getting this working, and can’t find it as an active issue.

Any help would be appreciated!

System Info:

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
Ionic App Scripts Version: 0.0.36
ios-deploy version: Not installed
ios-sim version: 5.0.9
OS: Mac OS X Sierra
Node Version: v6.7.0
Xcode version: Xcode 8.0 Build version 8A218a

So I found that the WkWebView is the culprit, if I remove it and use UIWebView it works. I do see this is in the Xcode console, never seen it before. Ill add to see if it helps. I would still prefer WkWebView over UIWebView, but at least I know I’m not crazy, something is definetly blocking the http requests.

Heres the output in Xcode. Wonder if these are some app security settings?

subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0

1 Like

Nobody else is having this issue?

I face CORS Problem using WkWebView and httpS too

If you are using the cordova-plugin-wkwebview-engine plugin, here the massive feed about it

Otherwise, here my today’s question about WkWebView

Removing the WkWebView solves the issue.

ionic cordova plugin remove cordova-plugin-wkwebview-engine

Thank you!

2 Likes

My advice, and the esiest way to solve this issue is to switch your service to https.

if I uninstall the wkwebview other things stop working as for example the component ion-select and ion-option

1 Like

So did you find any solution for it?
Right now WkWebView is built in, and I want to know if I can replace it with any other plugin. Please help, its a little urgent.