Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
588 views
in Technique[技术] by (71.8m points)

meteor - Ionic2 White screen error on deploy Android 4.2.2: Use of const in strict mode

i can deploy to a real device and to a emulator using Android 4.1.1, 4.2.2, 4.4.2.

But it always shows a white screen and in the console I can see the error Uncaught SyntaxError Use of const in strict mode.

This is project and my system info is:

Cordova CLI: You have been opted out of telemetry. To change this, run: cordova telemetry on.
6.3.1

Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1

Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
ios-deploy version: 1.4.0
ios-sim version: 3.1.1
OS: Mac OS X El Capitan
Node Version: v6.3.1
Xcode version: Xcode 7.3.1 Build version 7D1014 
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Could make that work!! =)

For those who get here:

  • ionic platform add browser
  • ionic build browser
  • ionic plugin add cordova-plugin-crosswalk-webview
  • Remove the old app from the device
  • ionic build
  • ionic run android

As we are talking about old mobiles, dont forget you have that in your config.xml

<preference name="loadUrlTimeoutValue" value="60000" />


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...