Categories: AndroidMobility

5 Steps to Release Your Ionic App to Google Playstore

This article represents tips/steps and code sample which can be used to release your ionic app on Google playstore. Please feel free to comment/suggest if I missed to mention one or more important points. Also, sorry for the typos.
  1. Create Release Build
    Following command can be used to create release build for Android. This will generate a release build based on the settings in your config.xml. For every new release, you may want to change the version in config.xml file.
    cordova build --release android
    

    By executing above command in the home directory, one could find generated apk file with name such as android-release-unsigned.apk in the path platforms/android/build/outputs/apk.

  2. Create One-time Private Key: Next step is to generate private key which will be used to sign the APK file. Do note that this is one-time activity and once an APK is signed with private key generated using below command, one would have to keey the private key file intact. Playstore would need you to sign the APK file everytime with same private key.
    keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
    
  3. Sign the release build with Private key: Next step is to sign the APK with private key generated above. Following command can be used.
    jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <keystore name such as my-release-key.keystore> <path/to/apk> <alias name>
    
  4. Create the APK file: Lastly, you may want to set path to zipalign utility as Environment PATH variable. Zipalign tool can be found in the path such as /path/to/Android/sdk/build-tools/VERSION/zipalign.
    zipalign.exe -v 4  <path/to/apk>  <apk name>
    
  5. Upload the APK file to Playstore: Login to Google playstore and upload your APK file. For the first time, you may have to go through filling questionaires etc. If you are new to Google playstore, you may have to pay an annual fee as well.
Ajitesh Kumar

I have been recently working in the area of Data analytics including Data Science and Machine Learning / Deep Learning and BI. I would love to connect with you on Linkedin. Check out my books titled as Designing Decisions, and First Principles Thinking.

Share
Published by
Ajitesh Kumar

Recent Posts

The Watermelon Effect: When Green Metrics Lie

We’ve all been in that meeting. The dashboard on the boardroom screen is a sea…

2 days ago

Coefficient of Variation in Regression Modelling: Example

When building a regression model or performing regression analysis to predict a target variable, understanding…

3 months ago

Chunking Strategies for RAG with Examples

If you've built a "Naive" RAG pipeline, you've probably hit a wall. You've indexed your…

3 months ago

RAG Pipeline: 6 Steps for Creating Naive RAG App

If you're starting with large language models, you must have heard of RAG (Retrieval-Augmented Generation).…

3 months ago

Python: List Comprehension Explained with Examples

If you've spent any time with Python, you've likely heard the term "Pythonic." It refers…

3 months ago

Large Language Models (LLMs): Four Critical Modeling Stages

Large language models (LLMs) have fundamentally transformed our digital landscape, powering everything from chatbots and…

6 months ago