Hello iam compiling my apk for production version but when i run
ionic cordova run android the app installs
ionic cordova run android --prod --release app doesnt install
ionic cordova run android --release app doesnt install
how can i fix this error because am on the final release, thank you.
i already read the docs, thank you, but when i add --prod --release, the app is not installed on the devices, but when i run ionic cordova run android, the app works . so i wanted clarificatin on why it isnt working for --prod --release
The --release flag makes your apk ready for release, that means you have to sign your app. Even if you just try to install it locally on your smartphone.
How to sign an apk is described on the linked page.
–release means you are going to publish your app either in your own device or publicly & for that you need to have release key for your apk using keytool