Our documentation is changing, please click here to enjoy it!

Skip to end of metadata
Go to start of metadata

As of April 10, 2018, Google has deprecated Google Cloud Messaging (GCM). This gateway will no longer be available to broadcast Push Notifications to your users as of May 29, 2019.

If you're using a GCM project in your application, you will need to migrate it to the new gateway: Firebase Cloud Messaging (FCM).

Do not create an FCM project !

You have to migrate your GCM project to FCM.

You don't have to create a new one on FCM. If you create an FCM project, all your tokens will be invalid and you will lose your whole opt-in user database.

Follow the steps below to migrate your GCM project properly.


In order to help you successfully migrate, please follow the steps below :

 

  1. First of all, follow the steps described in this article. Once done, come back to this page.
  2. To test your integration, activate logs and start your application. You will see the following line in the logcat, meaning that the plugin-firebase-messaging is correctly loaded :
  3. To ensure the plugin is correctly used by your application, you have to check in the logs that the token is registered by FCM:
  4. Once you have tested your integration, remove the line below from our plugin google-play-services
  5. Now, you have to remove the lines below from your manifest :
  6. You need to send a test notification to ensure that everything is working properly

Congratulations, your migration is complete !

 

If you have another push system in your application, please follow the steps below to complete your migration

  1. Add a custom FirebaseMessagingService by following this documentation. Once done go back to this page.
  2. Now report the way you use to handle push notification in your app through your custom GCMHandler into the custom FirebaseMessagingService
  3. When all the rules are reported, remove your custom GCMHandler from your application and your manifest
  4. You need to send a test notification to ensure that everything is working properly

Congratulations, your migration is complete !

 

If you want to register to FCM manually, please carefully read the "Manual FCM Registration" section on this page



  • No labels