This article provides a step-by-step guide on how and where to:
- Create a Firebase account.
- Create a Firebase project.
- Download your Firebase Services.json file.
- Find your Firebase Server key.
- Upload the Firebase Services.json file in AppMachine.
- Enter the Firebase Server key in AppMachine.
This article describes one of the steps you have to take to get your app published in the Google Play Store. Click here to see all of the steps.
- Navigate to https://firebase.google.com/.
- Click Get Started.
- Login with your Google account.
- On the welcome screen, click Add project.
- Enter a name for your project.
- Accept the terms of service.
- Click Create project.
- Enter a name for your Firebase project and click Continue.
- If you would like to track your app using Google Analytics, then make sure that the option is enabled before using the Continue button to proceed.
- Choose or create a Google Analytics account and click on the Create Project button to finish creating the Firebase project.
- Now that the Firebase project has been created, we're going to start by adding an app to the project.
- Click on the Android logo below the text "Get started by adding Firebase to your app".
- Register the app by copying the Bundle ID of the app found in AppMachine in this screen:
and paste that as the Android Package name. Click 'Register app' to continue. - Download the google-services.json file by clicking the similarly named button. You'll have to upload this file during the Android publishing process in AppMachine later on. Click Next to continue.
- Step 3 'Add Firebase SDK' Click Next. Do not change any settings.
- Step 4 'Next steps' Continue buttons to proceed.
- After adding the Android app to the Firebase project it's time to locate the Server Key of your project. This key is required by AppMachine for you to be able to send push notifications to your app.
- Open the Project settings page via the cogwheel in the top-left corner of the Firebase console.
- Open the Cloud Messaging settings page by clicking on the similarly named tab.
- If the Cloud Messaging API (Legacy) is displayed as 'Disabled', then open the more-options menu on the left-side of the frame and click the 'Manage API in Google Cloud Console' button.
- A new tab will open up on which you'll be able to enable the Cloud Messaging API. Click the Enable button to do so.
- You might see this screen , select the right country and select I agree and click the Agree and continu button and Click the Enable button once more.
- Switch tabs to go back into the Firebase project and refresh the page.
- The Cloud Messaging API should now show as 'Enabled', and the Server key should now be visible.
- Select and copy the Server key,
>>Note: Please do not use the Web API Key that can be found on the General settings page or the Legacy server key<< - Go back to AppMachine and click Next.
- Paste the Server key and upload the downloaded json file and click Next..You've now successfully completed the Firebase configuration.