Push notifications: Why use Amazon SNS over Google's GCM/FCM?

后端 未结 2 1058
温柔的废话
温柔的废话 2021-01-17 11:51

I have created a mobile app for Android and iOS using Phonegap Build. Last year I had nearly finished writing code to use GCM (Google Cloud Messaging) for remote push notifi

2条回答
  •  感动是毒
    2021-01-17 12:22

    Just some thoughts.

    1. If you are already using some mobile AWS SDK, then it's more convenient to use it for SNS too.
    2. That also helps keep your app smaller.
    3. And you're happier as a developer since API calls are somewhat unified.
    4. If your backend is hosted on AWS infrastructure you can use IAM roles for EC2 instances (also Lambdas etc.) to make those call without access key/secret key.
    5. You get metrics in your CloudWatch.

    But Firebase Cloud Messaging is free :)

提交回复
热议问题