FireBase 云消息传递是否需要 Play 服务?

Does FireBase Cloud Messeging requires Play Services?

FCM 是否需要。用户必须在他的 phone 上安装 Play 服务才能接收通知?

你看到 GCM 可以,但现在我打算转移到 FCM 希望它不会...我怎么能在测试前知道?

是的。 Firebase Cloud Messaging 只是 GCM 的品牌重塑。

更多信息见GCM FAQ

是的。

参见:https://developers.google.com/cloud-messaging/android/android-migrate-fcm#switch_to_fcm_in_the_app-level_buildgradle

https://firebase.google.com/docs/cloud-messaging/android/client

FCM clients require devices running Android 2.3 or higher that also have the
Google Play Store app installed, or an emulator running Android 2.3 with Google APIs.

Firebase 需要 Google Play Services 9.0.0 或更高版本才能在您的应用程序中使用。 (这包括 FCM)。

这在入门指南的将 Firebase 添加到您的 Android 项目文档中列为第一个先决条件:

将 Firebase 添加到您的 Android 项目

https://firebase.google.com/docs/android/setup

根据您使用的 Firebase SDK,可能需要也可能不需要 Google Play 服务。

阅读 this article 以检查哪些 Firebase SDK 需要 Google Play 服务。