简体   繁体   English

离子2向我显示了Android 4.2设备中的白屏

[英]Ionic 2 shows me white screen in android 4.2 devices

I was just curious on how can I run my Ionic 2 project on Android Jellybean devices well. 我只是很好奇如何在Android Jellybean设备上很好地运行Ionic 2项目。 The application runs well in KitKat to Nougat OS devices but in Jellybean, It only shows white screen. 该应用程序可以在KitKat到Nougat OS设备上很好地运行,但是在Jellybean中只能显示白屏。 Is there any way I can make my Ionic 2 project be compatible in Android 4.2 (Jellybean) devices? 有什么方法可以使Ionic 2项目与Android 4.2(Jellybean)设备兼容? Thank you in advance. 先感谢您。

You can use Crosswalk 您可以使用人行横道

Why should I use Crosswalk? 为什么要使用人行横道?

Older versions of Android devices (4.0-4.3) use Android's default browser, which has significantly less performance and standards compliance than modern Chrome. 较旧版本的Android设备(4.0-4.3)使用Android的默认浏览器,该浏览器的性能和标准合规性明显低于现代Chrome。 Using Crosswalk gives you a specific and more performant version of Chrome to use on all Android devices, in order to reduce fluctuations and fragmentation among devices. 通过使用Crosswalk,您可以在所有Android设备上使用特定的,性能更高的Chrome版本,以减少设备之间的波动和碎片。

How does Crosswalk improve Cordova Android apps? Crosswalk如何改善Cordova Android应用程序?

By designating a specific version of Chrome, you can skip the unexpected behavior from browsers that vary from device to device. 通过指定特定版本的Chrome,您可以跳过因设备而异的浏览器的异常行为。 Crosswalk also provides improved performance and ease of debugging. Crosswalk还提高了性能并简化了调试。

What can I expect, performance and size-wise? 在性能和尺寸方面,我可以期待什么?

In older Android Devices (4.0-4.3), you'll see about a 10x improvement of both HTML/CSS rendering and JavaScript performance and CSS correctness. 在较旧的Android设备(4.0-4.3)中,您会看到HTML / CSS渲染,JavaScript性能和CSS正确性均提高了10倍。 To bundle Chrome, you will see a small (~10-15MB) size increase in your Android Apps. 要捆绑Chrome,您将在Android应用中看到一个很小的大小(约10-15MB)。

More about Crosswalk https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview 有关Crosswalk的更多信息https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview

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

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