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

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

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

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
, . , . , , .