Ion android white screen after showing screen saver

I built the apk file with ionic cordova build android. And I opened this application using the Genymotion emulator. When I open the application, it starts and displays a splash screen. After that, a white screen appears on the screen (I can close the application, but when I start it again, the same thing will happen).

I registered an error in the Android studio console.

Here they are

White screen error

And then I opened the main.js file in this apk. On line 40, I found this code.

Error source -main.js line 40

Then I looked at the scanner.ts file in the folders (./pages/scanner/scanner.ts). I did not find anything wrong. It works when I run this using cordova run browser.

scanner.ts contents of scanner.ts file

Here is more information about my setup:

npm list -g --depth=0
+-- babel@6.23.0
+-- babel-cli@6.24.1
+-- cordova@7.0.1
+-- ionic@3.5.0
-- nodemon@1.11.0

Installed platforms:
  android 4.0.0
  browser 4.1.0
Available platforms:
  blackberry10 ~3.8.0 (deprecated)
  webos ~3.7.0
  windows ~5.0.0

, . , . , , .

+4
2

tsconfig.json es6 es5.
. "target": "es6" → > "target": "es5"


. , .

0

- , .

Ionic Android- .

, -. chrome dev, chrome:///# chrome enter. , .

enter image description here

inscpet , -. . . enter image description here

...

+4

Source: https://habr.com/ru/post/1682058/


All Articles