GCM to FCM Migration
Follow the steps below to enable the FCM (GCM) service for your Android project
Last updated
Follow the steps below to enable the FCM (GCM) service for your Android project
Last updated
1. Go to https://console.firebase.google.com/ and add Firebase to your Google project. To do so, press the Add project button and select your Google project from the dropdown list as shown below.
2. Make sure you selected the correct project, then select the Country and click Add Firebase.
3. Go to the Project Settings and select Cloud Messaging.
4. Copy the provided Firebase Cloud Messaging Token and Sender ID to your Pushwoosh Control Panel.
Important
Check that the Google Project Number (FCM Sender ID) in your application build matches the one in your Firebase Console. It should be located in your AndroidManifest.xml in a native Android app, for cross-platform plugins please refer to corresponding plugin integration guides.
5. Here’s the API key you will need to configure your application in Pushwoosh Control Panel.
Go to the Pushwoosh Control Panel.
6. In your application click on Android->Edit to change the configuration for Android application.
7. Configure Android platform with your Firebase credentials. Refer to the guide to learn more.
FCM Sender ID is a unique numerical value created when you configure your Google project (given as Project Number in the Google Developers Console and as Sender ID in the Firebase console). In order to locate your Project Number please go to Android FAQ.
Easy, isn’t it?
MismatchSenderID error
If you see “MismatchSenderID” errors in your Message History, please try the following:
Check that the Google Project Number in your app matches the one in your Google Developers Console.
Firebase is deprecating Server Keys and replacing them with Firebase Cloud Messaging Tokens, and occasionally Server Keys may just stop working. If you still use Server Key as the API key when configuring your Pushwoosh Android app and get the MismatchSenderID error, please make sure to use Firebase Cloud Messaging Token instead of the Server Key.