0

I want to use Push notification in my app, Other things like sync with server database I had handled manually , So which is the best option to go ahead?

Also can I use GCM API keys with FCM?

Does FCM is free for unlimited number of messages?

AL.
  • 36,815
  • 10
  • 142
  • 281
Bhagwat K
  • 2,982
  • 2
  • 23
  • 33

2 Answers2

13

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.

Furqan
  • 787
  • 2
  • 13
  • 28
  • if we have FCM then whats use of com.google.android.gms:play-services-gcm:11.2.0 . why play services library latest updates contain gcm. Can anyone answer – Ravi Yadav Aug 30 '17 at 12:47
1

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.

If you'd like to see the differences between GCM and FCM, visit the Firebase documentation - FAQ section.

looptheloop88
  • 3,026
  • 17
  • 20
  • But I had already implemented the logic to send the notification for ios with my back end so can I send notification from my back end to andriod? – Bhagwat K Sep 27 '16 at 06:31
  • @Prashant You can still send notifications with your current implementation from your back-end to Android so long as your Android client app is properly migrated for FCM. – AL. Sep 27 '16 at 06:34
  • How can I send that? Does same GCM back end code will work or need to write new back end code for FCM? – Bhagwat K Sep 27 '16 at 06:36
  • if you migrate to fcm you will be getting above benefits i have mentioned.... Your GCM implemented app will still work fine – Rissmon Suresh Sep 27 '16 at 06:41
  • @Prashant - you can refer to the migration guide – looptheloop88 Sep 27 '16 at 06:42