简体   繁体   English

Cordova / Ionic iOS应用程序在加载插件时挂在启动屏幕上

[英]Cordova / Ionic iOS app hangs on splash screen while loading plugins

Our app is currently crashing for all users on iOS 11. The app loads the splash screen and then hangs infinitely. 我们的应用程序目前正在崩溃iOS 11上的所有用户。该应用程序加载启动屏幕,然后无限挂起。 This issue does not effect users not using iOS 11 and is not reproducible on the iOS 11 simulator. 此问题不会影响不使用iOS 11且不能在iOS 11模拟器上重现的用户。

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. 我们对此问题的唯一线索是,当我们使用Safari Developer Tools检查代码时,我们可以看到它是无法加载的插件。 This issue is not reproducible 100% of the time but it is about 98% of the time. 此问题在100%的时间内不可重现,但大约98%的时间。

Here is the only error we see in Xcode: 这是我们在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) 这是我们在浏览器中调试时的外观截图:(屏幕上的所有其他资源加载正常) 在此输入图像描述

This error started occurring right after iOS 11 was released and we have not changed any code. 此错误在iOS 11发布后立即开始,我们没有更改任何代码。 Help would be greatly appreciated as this error appears to be coming from inside of Cordova. 非常感谢帮助,因为此错误似乎来自Cordova内部。

Note: We are using Cordova 4.3.1 and tried updating to the latest but it made no difference. 注意:我们正在使用Cordova 4.3.1并尝试更新到最新版本,但没有任何区别。

我们的问题的解决方案是删除插件cordova-plugin-wkwebview-engine

I recently have been experiencing this issue. 我最近遇到过这个问题。 I'm using the new CLI 9.0 and iOS 5.0. 我正在使用新的CLI 9.0和iOS 5.0。 I actually removed the splashscreen plugin and it worked. 我实际上删除了splashscreen插件,它工作。 And a side benefit is it is a heck of a lot faster too! 另一个好处是,它的速度也快得多!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM