I’m trying to build my app for android, so I used the command
ionic cordova build android --release
And launched the app successfully. However, it was taking around 20 seconds, so I uninstalled this version and created another build using this command :
ionic cordova build android --prod
This build of the app didn’t even launch, let alone reduce launch time. When I uninstalled this version and tried to run the first version of the app with the --release flag, which did launch the first time like I said, I had the same issue. Even this version of the app wasn’t launching and it was forever showing a blank white screen.
No changes were made to the code when I was building these versions of the app. So why has my release apk suddenly stopped working after replacing it with a prod version and then again replacing it back to the release version? Why did the release version stop working after doing this?