[英]AWS SNS with FMC for SMS
I am developing a React native application where I want to sent an SMS for OTP.我正在开发一个 React 本机应用程序,我想在其中发送 OTP 短信。 I used AWS SNS for publishing messages after subscribing them to a topic, but I found that the price is quite high since the SMS is transactional.
我在订阅主题后使用 AWS SNS 发布消息,但我发现价格很高,因为 SMS 是事务性的。
I wanted to use Firebase Messaging Cloud since they do it for free but I don't really know how to proceed with it.我想使用 Firebase Messaging Cloud,因为他们免费提供,但我真的不知道如何继续使用。 Do I have to
createPlatformApplication
and then do createPlatformEndpoint
for every user to send messages?我是否必须为每个用户创建
createPlatformApplication
然后createPlatformEndpoint
才能发送消息? This is a bit confusing for me, so if someone could give me an overview of the initial processes, it would do me wonders.这让我有点困惑,所以如果有人能给我一个初始过程的概述,我会很惊讶。
This is how I am doing it now simply using subscribe and publish:这就是我现在使用订阅和发布的方式:
I understood your question as asking how you could deliver OTP codes using push notifications.我将您的问题理解为询问如何使用推送通知传送 OTP 代码。
To do that, you would:为此,您需要:
For this use case, you do not need to use topics and subscriptions, since all of your messages will only be targeting one person.对于此用例,您不需要使用主题和订阅,因为您的所有消息都只会针对一个人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.