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. I am also passionate about different technologies including programming languages such as Java/JEE, Javascript, Python, R, Julia, etc, and technologies such as Blockchain, mobile computing, cloud-native technologies, application security, cloud computing platforms, big data, etc. For latest updates and blogs, follow us on Twitter. I would love to connect with you on Linkedin. Check out my latest book titled as First Principles Thinking: Building winning products using first principles thinking. Check out my other blog, Revive-n-Thrive.com

Share
Published by
Ajitesh Kumar

Recent Posts

Feature Selection vs Feature Extraction: Machine Learning

Last updated: 2nd May, 2024 The success of machine learning models often depends on the…

16 hours ago

Model Selection by Evaluating Bias & Variance: Example

When working on a machine learning project, one of the key challenges faced by data…

22 hours ago

Bias-Variance Trade-off in Machine Learning: Examples

Last updated: 1st May, 2024 The bias-variance trade-off is a fundamental concept in machine learning…

2 days ago

Mean Squared Error vs Cross Entropy Loss Function

Last updated: 1st May, 2024 As a data scientist, understanding the nuances of various cost…

2 days ago

Cross Entropy Loss Explained with Python Examples

Last updated: 1st May, 2024 In this post, you will learn the concepts related to…

2 days ago

Logistic Regression in Machine Learning: Python Example

Last updated: 26th April, 2024 In this blog post, we will discuss the logistic regression…

7 days ago