Publishing Your App¶
Submit Your App to Google Play Store¶
Preparing a release Android APP bundle¶
The Android App Bundle is Android's new, official publishing format. Follow these steps to prepare a release APP Bundle for the Google Play Store.
Steps¶
-
Open your terminal and cd to the hamv_mobile
cd hamv_mobile
-
Generate a release keystore
keytool -genkey -v -keystore <keystoreName>.keystore -alias <keystoreAlias> -keyalg RSA -keysize 2048 -validity <keystoreValidityTime>
-
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.
-
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"
-
Prepare a production release config
- Copy and paste your
release.keystore
file to<project_root>/keystores
folder. - Go back to
<project_root>
folder and openbuild.json
. - Add the
release
information block toandroid
scope. EditstorePassword
,alias
andpassword
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": "" } } }
- Copy and paste your
-
Build a production release version APP Bundle by inputing the commands below:
Then, add these commands:ionic cordova build android --prod --release
cd platforms/android ./gradlew bundleRelease
After building process is done, you can find your android-release.aab
under <project_root>/platforms/android/app/build/outputs/bundle/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¶
-
Go to Google Play Developer Console. If you start from scratch, please register for a Google Play Developer account to create and set up your APP.
Note
If this is your first release for this app, follow the instructions to configure Play App Signing.
-
Go to your APP and click
production
on the left navigation. -
Click
Edit release
button on the upper right. -
Upload the App Bundle file (it should be
.aab
file format) and fill in release details. - Click
Save
, and thenReview release
to check all the release information is correct. - Submit for Google Play to review. Normally it takes around 5 business days. If there is no problem of your submission, your APP will be published.
Submit your app to the App Store¶
Release app to the App Store¶
Steps¶
-
Go to iTunes Connect and log in
-
Click "My Apps"
-
Click the plus button and select "New App"
-
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
-
Click the app that you just created
-
Go to the "App Information" page and fill the privacy URL and select the category of your app
-
Go to "Pricing and Availability " page, select the price of your app and select an option under the "Volume Purchase Program"
-
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
-
Please follow the section Upload build to your app to upload your build for review
-
Click button "Submit for Review" in the page "Prepare for Submission " on the top right
Upload build to your app¶
Steps¶
-
Open Xcode and select the file name extensions ".xcworkspace"
-
Open Preferences
(1) Select your account and click "Manage Certificates" button
(2) Create a new certificate if you don't have one
-
Click the "General" tab and select the team
-
Make sure your bundle ID and version are as the same as the settings in iTunes Connect
-
Go to Resources > Images.xcassets, make sure the images of 60pt exist
-
Change the app build to Generic iOS Device
-
Click Product > Archive
-
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
-
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.
-
Click the tab "App Store", and click "Prepare for Submissions"
-
Upload your build file
Have more questions? Submit a request