⚠️ You need to get the server key from your Firebase project and configure Cloud Message API.
First go to Firebase console , sign in, then click on Add project if your project is not here yet.
Give your project a name, and wait for Firebase to create it.
Then, click on the Android icon, and configure your project.
Give the package name setup from your project editor. You can ignore optional fields.
You can download the google-services.json file here (you can get it later)
Click Next twice and then Continue to the console
On the left side, click the wheel and select Project settings .
Get google-services.json file 🔑
On the left side, click the wheel and select Project settings .
You can download your google-services.json from here.
In order to get the server key, you first need to go to the Cloud Messaging tab.
Click the 3 dots on the right side of Cloud Message API (Legacy) (which is disabled by default), and select Manage API in Google Cloud Console .
In the new tab, click Enable .
Go back to your previous tab and refresh the page.
In Cloud Message tab your should now find a server key under Cloud Message API (Legacy)