[英]How to use Firebase Cloud Messaging(FCM) topic with AWS SNS
I want to establish a structure being the organization based.我想建立一个以组织为基础的结构。 each organization has a topic on FCM.
每个组织都有一个关于 FCM 的主题。
If an organization wants to send a push notification:如果组织想要发送推送通知:
it will request my backend via organization_id and a topic name and I shall trigger AWS SNS with the payload.它将通过 organization_id 和主题名称请求我的后端,我将使用有效负载触发 AWS SNS。
But I don't know and find whether can I request directly an FCM topic.但我不知道我是否可以直接请求 FCM 主题。
I am not sure if you want to use FCM topics specifically.我不确定你是否想专门使用 FCM 主题。 But if that is not the case, then you can use topics in AWS SNS itself.
但如果情况并非如此,那么您可以在 AWS SNS 本身中使用主题。 You can create SNS topics for your organisations.
您可以为您的组织创建 SNS 主题。 Then, your device endpoints can subscribe to your SNS topics, and you can send notifications to those topics.
然后,您的设备端点可以订阅您的 SNS 主题,您可以向这些主题发送通知。
Here is the link for more details - https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-topicmobile.html这是更多详细信息的链接 - https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-topicmobile.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.