Setup Firebase push notifications for Google Android

Prerequisites

Before you can activate push notifications, set the Firebase connection in the project level account.

Integration Flow

Create the connection between Firebase project and Google cloud account as follows:

  • Create key in Firebase project

  • Register the key from Firebase into the Google cloud account

  • Upload file to the Shelfy back-office

Procedure

  1. Go to Firebase > Project Settings.

  2. Click the Cloud Messaging tab.

  3. Click Manage Service Accounts.

  4. Go to Google Cloud and copy the email address.

  5. In the side menu, click IAM.

  6. Filter to this address, and click the edit icon.

  7. Click add role, and in the Select a role drop down, choose Firebase Cloud messaging API Admin.

  8. Click Save.

  9. Go to the Service accounts tab, and click the email.

  10. Go to the Keys tab.

  11. In the Add key drop drown, select Create new key.

  12. Create a private key using a JSON file type. The file is automatically downloaded to your computer.

  13. Login to shelfy.io console, and go to the Integrations Panel. (Integration Panel/Push Notifications/Firebase)

  14. Upload the JSON file.

Activate Push Notifications

If you have not created an Android app within the Firebase project, copy and paste the following values from the back office to your Firebase account.

  1. In Firebase, go to Project Settings > General

  2. Upload the GoggleService.info.json file.

  3. Click Save To Version. Release the version with Android push notifications activated.

  4. Upload the GoogleServices-info.json To the Shelfy back office.

  5. Click Save To Version, and release your version with the push notifications for Android.

Last updated