Skip to main content

How to get API Key for GCM (Google Cloud Messaging)


Step 1. Create A Firebase Project

Push Notifications require a Firebase Project. If you don't have one setup yet, click Add project and follow the directions to setup your project.

If you already have an FCM project, skip to Step 2.

1230

Step 2. Getting Your Firebase Cloud Messaging Token And Sender ID

Click the gear icon in the top left and select Project settings.

1230

Select the Cloud Messaging tab.

Under "Cloud Messaging API (Legacy)" click on the options (three dots on the right) and click "Manage API in Google Cloud Console". OneSignal will soon add support for the latest Firebase Cloud Messaging API (V1), but for now, the Cloud Messaging API works perfectly.

1188

This will open a new page, under Cloud Messaging press "Enable".

914

Refresh the page on your Firebase Console and copy your Server key and Sender ID.

1049
Server Key is API KEY for send Notification or FCM

Comments