Start the process
If you'd rather our team to take care of it, you can subscribe to the GoodBarber Takes Care Service (GBTC).
In both cases (Solo or GBTC), in order to build your Android test app, you must own a Google Publisher account .
Google uses different platforms, you'll need to access 3 of them to build your Android app:
- Google Cloud console
- Google Play console (requires a paid Google publisher account)
- Firebase Console
We recommend to use the same email to create projects and apps on all those platforms.
Below you will find the necessary steps for building your Android application yourself.
After going through this process, you will be able to test your native Android app on your device before submitting it to the Google Play Store.
Go to the page Publish > Android App > Publish .
0. FIRST TIME?
- This is the first time this app will be available on Google Play - choose this option if you publish your app for the first time.
- This is an updated version of this GoodBarber app or choose this option if you are updating an existing app already published on Google Play.
Go through this step only if you are updating an existing app already published on GooglePlay and you have the Keystore file.
How can I get the Keystore file?
If you have made your application with another app builder competitor of GoodBarber, you must ask them to give you the keystore file.
What if I don’t have the Keystore file?
If you cannot get the Keystore file, please select This is the first time this app will be available on Google Play and your app will be published as a completely new app.
2. PACKAGE NAME
The process automatically takes you to step 3. However, you can edit your the Package Name in Step 2.
By default, your package name is set as follows: com.goodbarber.yourprojectname
Warning: it appears in the Store URL of your app on Google Play.
If the name of your GoodBarber project is myapp, the package name will be com.goodbarber.myapp.
The store URL will be: https://play.google.com/store/apps/details?id=com.goodbarber.myapp
To modify the package name:
1. Go back to step 2. PACKAGE NAME
2. Edit the package name according to these requirements: Android - Edit the package name of the app
3. Click "Next step"
Authentication to the Google Cloud Console
Go to your Google Cloud console.
Your credentials are the same as the ones you use to login to your Google account. If you are already logged in to your Google environment, you directly have access to the Google Cloud Console.
In case you don’t have any Google Account, create one to continue this process.
Create a Google API project
1. Click on Select a project
2. Click on NEW PROJECT
3. Define a Project Name
4. Select the Organization to attach to your project
5. Select its Location
6. Click on Create
7. Open the project from the toolbar
You are now on your dashboard.
8. Take note of your Project number (not your Project ID)
In the example below, it's 820232276143.
9. Copy it in the appropriate field at Step 3.1 of your Android submission process in your GoodBarber backend.
10. Click "Next step" in the GoodBarber backend.
Enable the APIs
1. Click on Go to API overview or go the left-hand menu API and services > Dashboard.
2. Click on Enable APIs and Services.
3. Search and enable these API services from the API Library :
- Search for Maps SDK for Android in the API library
- Click the Enable button
- Go back to the API Library
- Search for Cloud Messaging in the API library
- Click the Enable button
Verify the enabled APIs
1. Go back to the menu API & Services > Dashboard
2. Make sure the 2 APIs Maps SDK for Android and Cloud Messaging are enabled in the API list:
Create your app on Google Play Console
1. Login to your Google Play console
2. Select "All Applications"
3. Click "Create app".
4. Fill in your app details (App name, default language, select App for App or Game and Free or paid)
Indicate if your app will be downloaded for free or for a price you will determine*.
5. Check the declarations boxes (Content guidelines and US export laws)
6. Click "Create app"
*To publish paid applications, you will be requested to set up a merchant account .
Click on the link provided in your Google Play console and follow Google's instructions.
WARNING: You can never change a free app into to a paid app!
If you set your app for FREE on the Play Store, it's forever!
You can change a paid app into a free app - but once it's changed to "free", it can never be changed back to "paid".
SHA-1 certificate fingerprint
1. Go the menu Release > Production
2. Click "Create new release"
3. Under App Integrity, click "Change App signing key"
4. Select "Use Google-generated key"
5. Go to the menu Release > Setup > App integrity
6. Click the copy icon next to SHA-1 certificate fingerprint
7. Paste this SHA-1 certificate fingerprint into the dedicated field on your GoodBarber back office .
8. Click "Next" in your back office GB to reach step 5.3 of the Android compilation process.
Create an Android key on Google Cloud Console
An API key is generated.
4. Click "Edit API Key"
5. Replace the default name with "Android Key"
6. Select Android apps under Key restrictions
7. Click on “Add package name and fingerprint" (Needs to be done twice, once for each SHA-1)
8. Copy the Package name and SHA-1 certificates fingerprint provided at the 5.3 step of the process in your back office GB and paste them on the Google Cloud console to restrict usage to your Android app with 2 items.
9. Under API restrictions, select Restrict key
10. In the drop-down menu, select "Maps SDK for Android"
11. Click "Save"
12. Copy the API key and paste it in step 5.2 of your Android submission process in your GoodBarber backend
Create a Firebase project
1. Go to "Firebase Console "
2. Click "Get started"
3. Click "Add a project":
3. Click the drop-down arrow in the Project name field.
A list of existing projects is displayed.
4. In this list, select the project you created at step 3 of this online help*
5. Click "Continue" in the next steps to create your Firebase project**
*Read this online help to make sure to link the Firebase project to the right Google Cloud project.
** It is up to you to Disable / Enable Google Analytics for your Android app now or you can always enable Google Analytics later on).
Add Firebase to your Android app
From the dashboard, after checking that you are in the right project, click on the Android logo.
1. Copy the package name given in your back office
2. Paste it In the Android package name box on Firebase console
3. Click on "Register app" on Firebase console
3. Click the "Download google-services.json" button to download the configuration file.
4. Upload the Google-service.json file on your GoodBarber back office
5. Click "Next" on Firebase platform until you reach Firebase step Read the getting started guide for Android
6. Click "Continue to the console"
Register the server key
Go to the Settings of your Firebase project:
1. Click on the icon to the right of Project Overview
2. Choose Project Settings
3. Click the "Cloud Messaging" tab
4. In the Project Credentials block, identify the Server Key
5. Copy the value of the associated token by clicking on the icon
6. Paste this server key in your GoodBarber backend
Generate the Android Ad Hoc version
You are done configuring your Android app, you can now compile the native ad hoc version and test it on your device.
1. Validate the last step
2. Click on Build my application
Test your Android ad hoc version
Once your app is built, a new page appears.
1. Click on Test my application to test the Ad Hoc version
2. Follow the instructions displayed in the modal window
You may receive the following warning when trying to install the ad hoc APK file on your Android phone: “Play Protect doesn’t recognize this app’s developer. Apps from unknown developers can sometimes be unsafe”.
Google Play Protect considers as potentially dangerous any app downloaded from another source than the Play Store.
This warning is therefore normal, as the ad hoc version isn’t downloaded from the store but directly from your project. Don’t you worry though: GoodBarber is a safe source!
You can go ahead and click on “Install anyway” to test the ad hoc version on your Android phone.
In case you tapped “OK” by mistake, the current and future installations of that specific APK file will be blocked, but there is still a solution:
- Delete the existing APK file from the “Downloads” menu of your Android device,
- Download the file from GoodBarber again,
- Click on “Install anyway” when asked to choose.
Modify your app or submit it to the Google Play Store
After the test, go back to Publish > Android App > Publish .
Modify my application - this action unlocks your GoodBarber backend, so you can edit your app and rebuild it (if you do, you won't have to create your API keys).
Submit my application - this action will allow you to proceed with the publication of your app.
Your backend is locked until your app is published in the Google Play store. A confirmation is asked so you do not lock your backend by mistake.
Now, what is left to do is to submit your Android app to the Google Play Store.
When the project is ready, click Continue to display the dashboard.