0

Please Explain me difference between:

  1. ionic cordova build android -> .apk Slowin loading

  2. ionic cordova build android --prod -> .apk Fast in loading

  3. ionic cordova build android --prod --release -> .apk Slow in loading

Thanks

test app
  • 1
  • 2
  • Possible duplicate of [Ionic build: difference between --prod and --release flags?](https://stackoverflow.com/questions/49581363/ionic-build-difference-between-prod-and-release-flags) – Phonolog Oct 19 '18 at 12:27

1 Answers1

1

Without flags it generates the apk debug version. And with release it generates the apk ready for the store but unsigned when you sign it you can upload it.

The --prod flag:

This will minify your app’s code as Ionic’s source and also remove any debugging capabilities from the APK.

Franco Coronel
  • 710
  • 1
  • 12
  • 25
  • are you taking about --prod flag ? – test app Oct 18 '18 at 20:42
  • Does release have any effect on code optimization. I do not want to release it on app store just want to test my code in my mobile. So will release will effect anything in code optimization ? – test app Oct 19 '18 at 13:28
  • If you want to test it on mobile but not uploading to the store you should use ionic cordova build android --prod . Not --release. The release flag does not have any optimization for that are the --prod flag or also you can use the the zipalign tool, you should see this link: https://ionicframework.com/docs/v1/guide/publishing.html – Franco Coronel Oct 19 '18 at 18:23