[英]ionic3 ios13 InAppbrowser crash
I'm creating ios13 app in Ionic3.我正在 Ionic3 中创建 ios13 应用程序。
But ios13Beta2 is not working in InAppBrowser.但是 ios13Beta2 在 InAppBrowser 中不起作用。
so select param '_blank', this app is crash.所以选择参数'_blank',这个应用程序崩溃了。
This is error detail.这是错误详情。
[TraitCollection] Class _UIFullscreenPresentationController overrides the -traitCollection getter, which is not supported. [TraitCollection] 类 _UIFullscreenPresentationController 覆盖了 -traitCollection getter,不支持。 If you're trying to override traits, you must use the appropriate API.如果您尝试覆盖特征,则必须使用适当的 API。
My ionic environment我的离子环境
Ionic:离子:
Ionic CLI : 5.0.3
Ionic Framework : ionic-angular 3.9.6
@ionic/app-scripts : 3.2.4
Cordova:科尔多瓦:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 14 other plugins)
Utility:公用事业:
cordova-res : not installed
native-run : not installed
System:系统:
ios-sim : 8.0.1
NodeJS : v12.4.0
npm : 6.9.0
OS : macOS Catalina
Xcode : Xcode 11.0 Build version 11M337n
I was facing the same issue but finally got it resolved by downgrading the WKView我遇到了同样的问题,但最终通过降级 WKView 解决了
It's one of the temporary solutions until we are able to get a concrete one.这是临时解决方案之一,直到我们能够得到一个具体的解决方案。
https://ionicframework.com/docs/v3/wkwebview/ https://ionicframework.com/docs/v3/wkwebview/
you can do it by adding this in config.xml您可以通过在 config.xml 中添加它来实现
<platform name="ios"> <preference name="CordovaWebViewEngine" value="CDVUIWebViewEngine" />
After ios 13 ,you can modify your Objective-c. 在ios 13之后,您可以修改Objective-c。
Here is the git someone resolved this problem. 这是有人解决了这个问题的git。
https://github.com/OutSystems/cordova-plugin-inappbrowser/pull/9/files/58adfa8c7bbe96238dd8e716611f3bbc86da58cb https://github.com/OutSystems/cordova-plugin-inappbrowser/pull/9/files/58adfa8c7bbe96238dd8e716611f3bbc86da58cb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.