Publish Ionic App on Play Store in Ionic/Cordova


When You want to publish your app on play store, First thing you have to do is 'create a keystore file'
(Make sure, when you've published app using a keystore then for publish this particular app next version, you must need the same keystore file, without will not able to publish the new version of this app)

1.) Create a keystore file by cmd :

keytool -genkey -v -keystore keystore_name.keystore -alias your_app_alias -keyalg RSA -keysize 2048 -validity 10000

After this you've to answer some question and then you keysore file will created in root folder of your   project.

2.) To sign the unsigned APK, run the jarsigner tool which is also included in the JDK:


jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore_name.keystore android-release-unsigned.apk alias_name

3.) Finally, you need to run the zip align tool to optimise the APK file :

First you to go into the zipalign folder, eg.:
    For Windows :
             cd /path/to/Android/sdk/build-tools/VERSION
             zipalign -v 4 android-release-unsigned.apk android_store_apk.apk

    For OS X :
             cd Users/UserName/Library/Android/sdk/build-tools/VERSION
             ./zipalign -v 4 android-release-unsigned.apk android_store_apk.apk


Now You can Publish android_store_apk.apk on the play store.