5

I am developing a push notifications architecture for our app. I am planning to use AWS-SNS with APNS and GCM. Google now recommends to use FCM (Firebase Cloud Messaging) instead of GCM for new apps. I wanted to understand if FCM is compatible with SNS or there can be some issues ? Are there any workarounds ?

Nathan
  • 2,617
  • 1
  • 19
  • 27
Mandeep Singh
  • 7,674
  • 19
  • 62
  • 104

3 Answers3

5

Yes, FCM is backwards compatible with GCM (and thus SNS). I've written a small guide for FCM on SNS in this answer as there are a few gotchas.

The FCM API allows a superset of GCM functionality if you use it directly but functionality wise you don't lose access to anything already available in SNS. It's also nice and easy to use.

Community
  • 1
  • 1
Nathan
  • 2,617
  • 1
  • 19
  • 27
0

Yes FCM is compatible with SNS, you need to be a bit careful about the payload as the format is a bit different.

For detailed tutorial read the following article.

N. S. Mehra
  • 45
  • 1
  • 1
  • 5
-1

Firstly while it is recommended to use FCM, GCM is still being supported and thus any service built on GCM should continue to work as expected. Also currently (this may change in the future) from a sending perspective there is no difference between FCM and GCM.

Arthur Thompson
  • 9,087
  • 4
  • 29
  • 33