迁移到 Firebase Cloud Messaging:导入现有 Google 项目会对项目产生什么影响?

Migrating to Firebase Cloud Messaging: What effect will importing an existing Google project have on the project?

setting up FCM 中说:

Create a Firebase project in the Firebase console, if you don't already have one. If you already have an existing Google project associated with your mobile app, click Import Google Project. Otherwise, click Create New Project.

我有一个现有的 GAE 云端点项目,目前使用 Google 云消息传递。我正在考虑使用 Firebase 云消息传递。我有点紧张将该项目导入 Firebase 控制台,因为我不确定这会对我现有的项目产生什么影响。

我的 Cloud Endpoints API 会在 GAE 控制台中进行管理,而我的 FCM 会在 Firebase 控制台中进行管理吗?我现在必须看看两个控制台?就像这里到底发生了什么?我只想在我的 Cloud Endpoints 项目中迁移到 FCM,我无意在我的应用程序中使用 Firebase 数据库。

非常感谢任何帮助或澄清或最佳实践!

据我所知,您的控制台项目不会发生任何变化。您并没有完全迁移 项目,只是在 Firebase 控制台中 导入 项目。该项目在您的 GAE 控制台中应该保持不变。

您将可以使用其他 Firebase 功能,但这不是强制性的(您可能已经知道)。 迁移 本身通常应用于客户端应用程序 (Android or iOS)。

加上 Firebase FAQ:

FCM is the new version of GCM under the Firebase brand. It inherits GCM’s core infrastructure, with new SDKs to make Cloud Messaging development easier.

Benefits of upgrading to FCM SDK include:

  • Simpler client development. You no longer have to write your own registration or subscription retry logic.
  • An out-of-the-box notification solution. You can use Firebase Notifications, a serverless notifications solution with a web console that lets anyone send notifications to target specific audiences based on Firebase Analytics insights.

To upgrade from GCM SDKs to FCM SDKs, see the guides for migrating Android and iOS apps.