ionic-team/legacy-ionic-cloud

app created with ionic cloud has a large boottime

Opened this issue · 1 comments

I have a problem if I build my application with ionic cloud: In case I build my app with ionic cloud the boot of the application takes quite some time. At the moment the boottime is 15 seconds for my application. I read some other topics about it long boottimes and they suggest to use the --prod option.

I use the following command:

ionic package build android --profile productioncer --release

And I tried the following command:

ionic package build android --profile productioncer --release --prod

But both commands results in the same .APK (same size). How can I decrease the loading time / boottime of my app?

Depending on the Ionic CLI version you are using you first have to build your app locally with --prod (npm run build --prod for example). Then ionic package will upload and use that optimized version to build your app.

Current versions of the CLI build automatically, so this should be taken care of.