Android Push Notifications

Android notifications require a free Google Firebase account. This is where you get your API and sender ID used to send the notifications.

PLEASE NOTE: The google-services.json file is a different file to your Google Play Services API Key. The google-services.json file created in this doc is used within your app to connect to firebase and facilitate Android Push Notifications and is normally labelled google-services.json. The Google Play Services API Key is used on our build server to facilitate sending your completed app to Google Play and will usually take the form of a file name like "api-1234567890.json". Mixing up these two files will cause errors.

Start Here

Do you have an existing Google Project? Follow one of the options below:

Yes, Step 1: add Firebase to an existing project
No, Step 2: create a new Firebase project by continuing below.
Step 3: If you only need to add google-services.json to an existing Firebase project, start below on "Getting your google-services.json File."

Step 1: Adding Firebase to an Existing Google Project

First, login to the Firebase console.

Click 'Add project'
Click the dropdown arrow
Select your existing project
Press 'Add Firebase'

Continue to the next step of  Getting your Project Settings.

Step 2: Setting up a new Firebase project

First,  create your Firebase account.

Next, login to  the Firebase console.

Click "Create Project" and give it a name.

Continue to the next step of Getting your Project Settings.

Getting your Project Settings

Next, click the gear icon at the top left, and go to Project Settings.

Click the "Cloud Messaging" tab, and you will see your server key and sender ID.

Copy these credentials. Go to your AppPresser dashboard and go to My App -> Push Notifications -> Notification Profiles. Enter these credentials for the Android settings and save.

Step 3: Getting your google-services.json File

NOTE: The google-services.json file is a different file to your Google Play Services API Key.

In your Firebase project, click back to the "General" tab in the same settings area or by clicking on the gear icon if you are returning from a different page and need to return back to the settings area.

Click the Andoid Icon under Your Apps

Enter your app's package name. Your Android Package name should be the same value as set in MyAppPresser customizer under Settings -> App ID.

NOTE: If you already have an existing app on the Play Store this value should also match your existing app. These values need to all match otherwise your builds will fail

Press the "Register App" to continue.

Download your google-services.json

Go back to your AppPresser dashboard and go to My App -> Push Notifications -> Notification Profiles. Upload the google-services.json file. 

It would be a good idea to save your google-services.json file with your iOS certificates as a backup.

Save this profile, and Android notifications are ready to go. To test them on your device, rebuild your app with "enable notifications" checked.