How to Download Firebase Service Account Key

This key is needed to authorize sending push notifications from your server to your app users, this key is needed for http v1 firebase apis.

Follow these steps to get the key for your account.

  1. Go to https://console.firebase.google.com
  2. Select the project for which you want to create the key
  3. Select the settings icon for the android app (most probably you might just have one app).
  4. Click on Service Accounts tab and click on Generate new private key to download the new key.
  5. keep this file safe in your server.
  6. Download this file to your server and update the file path in textbox in Firebase Api Settings section on AndroApp->Account Settings tab on your wordpress admin dashboard.
  7. you might need to enable Firebase Cloud Messaging api from  https://console.developers.google.com/apis/api/fcm.googleapis.com/overview?project={project_number}
  8. replace {project_number} from Google Api you extracted earlier, i.e. 370901340170 from 1:370901340170:android:ce70542cdae49cac
  9. Create a new APK and test the push notifications, go here for troubleshooting push notification.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *