We’ve integrated Cloud Messaging with Firebase and introduced many improvements. Here is an FAQ to help you understand how these updates may impact you. If you have a question that's not here, use the Send Feedback link at top right to let Google know.
Why is Google Cloud Messaging (GCM) part of Firebase?
How does it relate to Firebase Cloud Messaging (FCM)?
Google is investing in Firebase, making it our unified mobile platform.
Over the last few years, we have expanded GCM to send messages to multiple platforms beyond Android: iOS and Chrome. Firebase is known for being cross platform, so FCM now makes a natural fit in the Firebase suite of features designed for Android, iOS, and mobile web.
Another core value of Firebase is cross-feature integration. We are adding the ability for other Firebase features to easily send messages via FCM. For example, you can use Firebase Notifications to send reengagement messages to your users.
We think that GCM will be even more useful to developers as an integrated part of Firebase. You can still get the same great product, now under a new name: "Firebase Cloud Messaging," or FCM for short.
How different is GCM from FCM? What is new in FCM SDKs?
FCM is the new version of GCM under the Firebase brand. It inherits GCM’s core infrastructure to make sure we continue to deliver messages reliably on Android, iOS and Chrome.
The new FCM SDK:
- Simplifies client development. You no longer have to write your own registration or subscription retry logic.
- Enables a new serverless notifications solution with a web console, Firebase Notifications. With Firebase Notifications, anyone can send notifications to target specific audiences based on Firebase Analytics insights. They can then evaluate notification effectiveness by assessing the built-in Notifications Funnel Analysis in the console.
FCM Android and iOS SDKs make messaging and notifications development easier. They offer an out-of-the-box solution so that anyone can send notifications from Firebase Notifications immediately.
Is GCM going to be deprecated?
We will continue to support the current version of GCM Android and iOS SDKs because we know a lot of developers are using GCM SDKs today to handle notifications, and client app upgrade takes time.
But all new client-side features will be added to FCM SDKs only moving forward. You are strongly encouraged to upgrade to FCM SDKs.
How is FCM server implementation different from GCM server implementation?
You won’t need to make any server-side protocol changes for the upgrade. The service protocol has not changed. However, note that all new server enhancements will be documented in FCM server documentation.
How do I upgrade from GCM SDK to FCM SDK?