Skip to content

Publishing Your App

Submit Your App to Google Play Store

Preparing a release APK

Follow these steps to prepare a release APK for the Google Play Store.

Steps

  1. Open your terminal and cd to the hamv_mobile
cd hamv_mobile
  1. Generate a release keystore
keytool -genkey -v -keystore <keystoreName>.keystore -alias <keystoreAlias> -keyalg RSA -keysize 2048 -validity <keystoreValidityTime> 

  1. Generate a key hash for Facebook Login
keytool -exportcert -alias <keystoreAlias> -keystore <keystoreName>.keystore | openssl sha1 -binary | openssl base64

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

 4. Put your release key hash to Facebook developer
  • Go to Facebook for Developers website
  • Select your app
  • Go to the page Settings/Basic https://developers.facebook.com/apps/<your APP Id>/settings/
  • Find the block "Android"
  • Put the key hash that you just generated into the field "Key Hashes"
  • Click "Save Changes"

    1. Prepare a production release config
  • Copy and paste your release.keystore file to <project_root>/keystores folder.

  • Go back to <project_root> folder and open build.json.
  • Add the release information block to android scope. Edit storePassword, alias and password values.

Here is an example of a build configuration file:

{
    "android": {
        "debug": {
            "keystore": "./keystores/debug.keystore",
            "storePassword": "android",
            "alias": "androiddebugkey",
            "password" : "android",
            "keystoreType": ""
        },
        "release": {
            "keystore": "./keystores/release.keystore",
            "storePassword": "<release_keystore_password>",
            "alias": "<keystoreAlias>",
            "password" : "<release_password>",
            "keystoreType": ""
        }
    }
}
    6. Build a production release version apk
ionic cordova build android --prod --release

After building process is done, you can find your android-release.apk under <project_root>/platforms/android/build/outputs/apk/release folder.

Now you have your final release binary and you can release this to Google Play Store.

Release app to Google Play Store

Steps

  1. Go to Google Play Developer Console

  2. Create a new application

  1. Fill in the title of your app

  1. Upload the APK file

(1) Click App releases and click the button MANAGE PRODUCTION next to the text Production

(2) Click CREATE RELEASE button

(3) Upload the APK file that you just signed in the Step 8 Optimize the APK above, the file name should look like this <releaseAPK>.apk

NOTE: You can also fill what's new in this version in the block "What's new in this release"

  1. Fill the Pricing & distribution page

  1. Fill the Content rating page

  2. Go back to App releases page and Click REVIEW button on the bottom right to submit your app

Submit your app to the App Store

Release app to the App Store

Steps

  1. Go to iTunes Connect and log in

  2. Click "My Apps"

  1. Click the plus button and select "New App"

  1. Fill the fields in the popup and click "Create" button

NOTE: If you don't have a bundle ID that can be selected, go here to create one

  1. Click the app that you just created

  1. Go to the "App Information" page and fill the privacy URL and select the category of your app

  1. Go to "Pricing and Availability " page, select the price of your app and select an option under the "Volume Purchase Program"

  1. Go to "Prepare for Submission " page and fill out the field in the page

NOTE: The images of 5.5-inch Display (iPhone) and 12.9-inch Display (iPad) are REQUIRED

  1. Please follow the section Upload build to your app to upload your build for review

  2. Click button "Submit for Review" in the page "Prepare for Submission " on the top right

Upload build to your app

Steps

  1. Open Xcode and select the file name extensions ".xcworkspace"

  1. Open Preferences

(1) Select your account and click "Manage Certificates" button

(2) Create a new certificate if you don't have one

  1. Click the "General" tab and select the team

  1. Make sure your bundle ID and version are as the same as the settings in iTunes Connect

  1. Go to Resources > Images.xcassets, make sure the images of 60pt exist

  1. Change the app build to Generic iOS Device

  1. Click Product > Archive

  1. Select the archived file, and click Upload to App Store button

(1) Select your team and click the button Choose

(2) Check the information and click Upload button

(3) Click the button Done after seeing Upload Successful

  1. Go back to iTunes Connect, select Activity tab, check if the build that you uploaded is already there

NOTE: If the status for the build is Processing, please wait for a while.

  1. Click the tab "App Store", and click "Prepare for Submissions"

  1. Upload your build file

Have more questions? Submit a request