iOS 11: Ionic v1 app hangs on splash screen while loading plugins


#1

Our app is currently crashing for all users on iOS 11. The app loads the splash screen and then hangs infinitely. This issue does not effect users not using iOS 11 and is not reproducible on the iOS 11 simulator.

The only clues we have for this issue are that when we inspect the code using Safari Developer Tools we can see that it is the plugins that are failing to load. This issue is not reproducible 100% of the time but it is about 98% of the time.

Here is the only error we see in Xcode:

[BoringSSL] Function nw_protocol_boringssl_input_finished: line 1389 Peer disconnected during the middle of a handshake. Sending errSSLFatalAlert(-9802) alert
TIC TCP Conn Failed [1:0x1c016b4c0]: 3:-9802 Err(-9802)
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
Task <F69566CA-B83A-4252-B2F2-DDB84A7AAFD3>.<1> HTTP load failed (error code: -1200 [3:-9802])
Task <F69566CA-B83A-4252-B2F2-DDB84A7AAFD3>.<1> finished with error - code: -1200

and here is a screenshot of how it looks when we debug in the browser: (all other resources off the screen load fine)
enter image description here

This error started occurring right after iOS 11 was released and we have not changed any code. Help would be greatly appreciated as this error appears to be coming from inside of Cordova.

Note: We are using cordova-ios 4.3.1 and tried updating to the latest but it made no difference.


#2

I am having the same problem with my app…the splash screen will appear and the app never loads past that, the splash screen goes away. However, if I add the cordova-plugin-wkwebview-engine to the project, my app will load.

cli packages:

@ionic/cli-utils  : 1.10.2
ionic (Ionic CLI) : 3.10.3

global packages:

Cordova CLI : 6.5.0 

local packages:

@ionic/app-scripts : 2.0.2
Cordova Platforms  : ios 4.3.1
Ionic Framework    : ionic-angular 3.5.3

System:

Android SDK Tools : 25.2.5
ios-deploy        : 1.9.1 
ios-sim           : 5.0.13 
Node              : v7.5.0
npm               : 5.3.0 
OS                : macOS Sierra
Xcode             : Xcode 8.3.3 Build version 8E3004b

#3

I am having the same problem.
How did you solve this after all?
Thank you!