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.

Start Here

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

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

Option 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.

Option 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. Enter these credentials for the Android settings.

(Option/Step 3) Getting your google-services.json File

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 "Add Firebase to your Android app"

Enter your app's package name.  See the next image on where to get the Android package name.

Where to find your Android Package Name

Go to your app on myapppresser.com and customize your app, under the settings tab locate the App ID.  Use this app id as the package name in the step above.

Press the "Register App" to continue.

Download your google-services.json

Go back to your AppPresser dashboard and go to My App => Push Notifications. 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.

AppPush Plugin

To send notifications from your WordPress site, you also need to add your sender ID to the AppPush plugin. Login to your website's WordPress dashboard, go to AppPresser settings, and click the Notifications tab.

Add the same sender ID you just used under "Google API Project Number" or "Android Sender ID."