Search code examples
androidfirebasefirebase-cloud-messaging

What is the latest Firebase Cloud Messaging HTTP protocol?


I work for a consultancy. Over the past 10 years we have developed and deployed dozens of applications, many of which use Firebase Cloud Messaging.

I received a message saying that some APIs will be discontinued on June 20th and I want to make sure I understand what they mean by this. All of my applications are Java-based servers that send notifications to Android apps, and all of them are using an HTTP post to do so (in other words, not using any kind of SDK or platform provided by Firebase).

The most recent of our projects are using a URL that looks like this: https://fcm.googleapis.com/v1/projects/{our-project-name}/messages:send

Some older projects are using: https://fcm.googleapis.com/fcm/send

Do either or both of these need to be updated?

Thanks, Frank


Solution

  • The legacy FCM API was deprecated last June 2023 and will be removed on June 2024 per the latest migration guide. With this, you should migrate to FCM HTTP v1 API before the said deadline.