Publish Cordova Apps to PlayStore
Publish Cordova Apps to PlayStore

Publish Cordova Apps to PlayStore: A Step by Step Guide

This article, I’m going to explain about how to publish a cordova apps to play store (Google / Android).This Includes following steps

  1. Generate apk in release mode
  2. Generate Key store file
  3. Signing your app
  4. Zip align your apk

Remove Console Plugin (optional)

First, we need to remove console plugin, because we don’t need any debugging option on production build. Incase you didn’t added plugin, you can skip this steps

cordova plugin remove cordova-plugin-console

Step 1: Generate APK in release mode

We need to generate release apk by using

ionic cordova build --release android
cordova build --release android
  • This will generate release apk in platforms/android/build/outputs/apk/android-relase-unsigned.apk (path may differ for you)
  • !!important!! Rename your apk with yourappname.apk & move the file into home folder

Step 2: Generate Key storefile

when you generate keystore file, it’ll ask few questions, please answer those. & you have to create a new password  for a keystore file too.

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

Step 3: Signing your application using jarsigner

!!! important !!! Before executing this step, your must keep your release apk & keystore file in same folder.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore yourappname.keystore yourappname.apk yourappname

Step 4: Zip align your apk

zipalign -v 4 yourappname.apk yourappname-final.apk

Note: If you’re facing any issue like zipalign is not an internal or external command, you need to set a path for android buildtools. please read our setup documentation


Important: Hello dear, please backup your keystore file, password & alias_name. because it’s very important for next update. Incase, if you forget your password, you can’t recover it 🙁

Sundaravel M

About the author: Hi! I'm Sundaravel (codesundar), Founder of I have been a Web, Mobile App developer, Author, and Teacher since 2014. I also worked as a software consultant for fortune 500 companies. I created to share my real-time knowledge in various technologies such as PhoneGap, Ionic, Flutter and more.