简体   繁体   English

Ionic无法在Android 4.4.2上加载

[英]Ionic not loading on Android 4.4.2

I am using: 我在用:

Your system information: 您的系统信息:

Cordova CLI: 6.4.0 
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.3.2 Build version 8E2002

I have built an app with: 我用以下方法构建了一个应用程序:

ionic build android

This builds the relevant apk file, that I can install to an Android devise. 这将构建相关的apk文件,我可以将其安装到Android设备上。

I have tried a number of devises successfully: 我已经成功尝试了许多设计:

Samsung Galaxy S7 with Android 6.0.1
Samsung Galaxy S5 with Android 5

However, when I try install it on the following, it seems to just hang when I launch the app: 但是,当我尝试将其安装在以下设备上时,似乎在启动该应用程序时挂起了:

Samsung Galaxy Tab with Android 4.4.2

I have added an alert to the top of the constructor in app.components.ts , but this does not get fired on the Android 4.4.2 devise. 我在app.components.ts中的构造函数顶部添加了一个警报,但是在Android 4.4.2上不会触发该警报。

If anyone can offer any ideas I would appreciate it. 如果有人可以提供任何想法,我将不胜感激。

在此处输入图片说明

Ionic doesnt provide support for 4.4.2 See github issue Ionic不提供对4.4.2的支持,请参阅github问题

Key points : 关键点 :

  1. you can use crosswalk 你可以使用人行横道

Key Commands 按键命令

ionic browser add crosswalk
  1. when u will use this however angular date pipe will break. 您何时使用此功能,但日期日期管道会中断。 As per comment 根据评论

"Hello @windwp! Ionic 2 does not currently support the Android browser, although we do support chrome for Android. The date pipe uses the internationalization API which is not supported in older browsers such as the Android browser. Sorry for any hassle that causes you, and thanks for using Ionic!" “ Hello @windwp!Ionic 2目前不支持Android浏览器,尽管我们确实支持chrome用于Android。日期管道使用的是国际化API,而在较旧的浏览器(例如Android浏览器)中则不支持。很抱歉给您带来麻烦,并感谢您使用Ionic!”

So possible solution is 所以可能的解决方案是

a. 一种。 use moment [angular2-moment] 使用力矩[angular2-moment]

{{myDate | amDateFormat:'LL'}}

This will work everywhere. 这将无处不在。

b. b。 use intl js polyfill . 使用国际js polyfill

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

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