How to build app for publishing

In IONIC 2, ionic build android generates 2 apk - android-debug-unaligned.apk, android-debug.apk, both are debug apk, how do I create a release apk to release in play store? Do we have publishing instructions like https://ionicframework.com/docs/guide/publishing.html for Ionic 2?

Build with the --release flag. Signing and aligning is the same for any Android app, so no different in Ionic 2 from Ionic 1.

1 Like

you also have to remove console plugin

ionic build android --release worked and followed rest of the instructions from https://ionicframework.com/docs/guide/publishing.html.

Release the app on play store - https://play.google.com/store/apps/details?id=com.aggarwalankush.mosum