Connect your website to Google Firebase by configuring your credentials inside the plugin, enabling push notifications to be delivered to your subscribers.
Before You Begin #
Make sure you have the following ready before starting this guide.
- API Key
- Project ID
- Messaging Sender ID
- App ID
- VAPID Key
- Service Account JSON File
If you have not collected these yet, read the Firebase Setup guides first.
Step 1 – Open Firebase Setup #
In your WordPress admin, go to PushPilot → Setup → Firebase Setup.
This page contains all the settings required to connect your website to Firebase Cloud Messaging.
Step 2 – Upload the Service Account JSON File #
The Service Account file allows secure server-side communication with Firebase.
- Locate the Firebase Service Account section.
- Click Upload.
- Select the JSON file you downloaded from Firebase.
- Once uploaded, the status will show Uploaded.
Step 3 – Enter Your Firebase Credentials #
In the Firebase Configuration section, enter the following values from your Firebase project:
- API Key
- Project ID
- Messaging Sender ID
- App ID
- VAPID Key
Copy and paste each value directly from Firebase. Do not type them manually as even a small mistake will cause the connection to fail.
Step 4 – Save Settings #
Click Save Firebase Settings.
Step 5 – Test the Connection #
In the FCM Connection Test section, click Test. Wait a few seconds for the check to complete.
If everything is configured correctly, the status will update to confirm a successful connection. Your website is now ready to send push notifications.
What to Do if the Test Fails #
- Re-upload the Service Account JSON file and make sure it is from the correct Firebase project
- Re-check all five credential fields and confirm each one matches your Firebase project exactly
- Make sure all five values belong to the same Firebase project
- Confirm that Firebase Cloud Messaging is enabled in your Firebase console under Project Settings, Cloud Messaging tab
Even a small mismatch such as an extra space or a wrong value can cause the test to fail.
Need Help Getting Your Firebase Credentials? #
If you have not yet created a Firebase project or generated your credentials, please read: → Create a Firebase Project & Get API Credentials.
