Publish to Google Play

1. Change the app name

Replace the "outfit" string with your app name in the following file j2StoreMobileapp/config.xml

<name>Outfit</name>

2. Change the app Bundle ID

  • Go to the j2StoreMobileapp/config.xml file and change the 'com.outfit.themeparrot' to your bundle id.

3. Change the App Icon

  • Upload your logo and splash screen to the following URL

  • Icon size : 1024 *1024

  • Splash screen size : 4096 * 4096

Android Publishing :

To generate a release build for Android, we can use the following cordova cli command:

$ ionic cordova build android --prod --release -- -- --packageType=bundle
  • This will generate a release build based on the settings in your config.xml.

  • After build creation, our unsigned AAB bundle is available in

/Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab

Generate our private key using the key tool:

  • To generate the private key run the following key in the terminal

$ keytool -genkey -v -keystore my-release-key.jks -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
  • You’ll first be prompted to create a password for the key store.

  • Then, answer the rest of the questions and when it’s all done, you should have a file called my-release-key.jks created in the current directory.

Note: Make sure to save this file somewhere safe, if you lose it you won’t be able to submit updates to your app.

Sign the unsigned APK :

  • Run the jarsigner command in the terminal

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab alias_name

Optimize the APK

  • To Optimize the AAB bundle, run the following command in the terminal

/Users/Library/Android/sdk/build-tools/29.0.2/zipalign -v 4 /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab signed.aab

or

./zipalign -v 4 /Users/Desktop/appname/platforms/android/app/build/outputs/bundle/release/app.aab signed.aab
  • Now we have our release APK ready for the Google Play Store.

  • To release the app to the play store kindly follow this instructions

Last updated