最新的 Firebase 云消息传递 HTTP 协议是什么?

问题描述 投票:0回答:1

我在一家咨询公司工作。在过去 10 年中,我们开发并部署了数十个应用程序,其中许多应用程序使用 Firebase Cloud Messaging。

我收到一条消息,称某些 API 将于 6 月 20 日停止使用,我想确保我理解其含义。我的所有应用程序都是基于 Java 的服务器,用于向 Android 应用程序发送通知,并且所有应用程序都使用 HTTP post 来执行此操作(换句话说,不使用 Firebase 提供的任何类型的 SDK 或平台)。

我们最近的项目使用的 URL 如下所示: https://fcm.googleapis.com/v1/projects/{our-project-name}/messages:发送

一些较旧的项目正在使用: https://fcm.googleapis.com/fcm/send

其中一个或两个都需要更新吗?

谢谢, 弗兰克

android firebase firebase-cloud-messaging
1个回答
0
投票

旧版 FCM API 已于 2023 年 6 月弃用,并将根据“最新迁移”指南于 2024 年 6 月删除。这样,您应该在上述截止日期之前迁移到 FCM HTTP v1 API。

旧版 API -
    https://fcm.googleapis.com/fcm/send
  • HTTP v1 API -
  • https://fcm.googleapis.com/v1/projects/{project-name}/messages:send
© www.soinside.com 2019 - 2024. All rights reserved.