1

I want to implement Push Notification in Android. So which method is Better for Push Notification? Using GCM (Google Cloud Messaging) or FCM (Firebase Cloud Messaging)?

I recently read somewhere GCM is shutdown from Sept 2016, so running GCM for new User. So which one is using GCM or FCM.

Cœur
  • 37,241
  • 25
  • 195
  • 267
BNS Group
  • 47
  • 1
  • 8

3 Answers3

2

Google encourages you to use FCM. So you should use FCM.

"Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features!"

Link: https://developers.google.com/cloud-messaging/faq

Elvis Chidera
  • 201
  • 4
  • 10
2

From Google Developers

Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features! See the FAQ to learn more. If you are integrating messaging in a new app, start with FCM. GCM users are strongly recommended to upgrade to FCM, in order to benefit from new FCM features today and in the future.

So clearly FCM is the way to go now.

Katerina A.
  • 1,268
  • 10
  • 24
2

Firebase Cloud Messaging (FCM) is the newer version of Google Cloud Messaging (GCM). So it is strongly recommended that new users (developers) to use FCM.

In relation to that, it is only possible to generate Server Keys by creating a Firebase Project:

Starting from September 2016, you can create new server keys only in the Firebase Console using the Cloud Messaging tab of the Settings panel. Existing projects that need to create a new server key can be imported in the Firebase console without affecting their existing configuration.

This is probably the note you've read. This doesn't really say that GCM is shutdown.

AL.
  • 36,815
  • 10
  • 142
  • 281