-1

I just initialized a mobile app with ionic when I test on browser everything works fine but when I test on mobile the app shows white screen

command I initialize the project

ionic start projectname blank --type=angular

then I add the android folder with the command

ionic cap add android

and finally i try to run it on real device with command

ionic cap run android -l --external

results when it runs on real android device or even faulty display emulator showing white screenenter image description here

Nguyen Anh
  • 150
  • 5

1 Answers1

1

Have you tried following?

Enable USB Debugging (Android Device) Discover USD Devices (Chrome Dev Tools) Select Debug app - App Name Use USB for - File Transfer Add android:debuggable="true" in Manifest file

Alexandra28
  • 31
  • 1
  • 5
  • This way I did it too and the debug still doesn't show anything, and I only know the reason is the android operating system, because when I run android 10 it works fine, but when I run on android 7 8 then it has a white screen error and doesn't log any errors – Nguyen Anh Oct 03 '22 at 02:14