I have a React Native application that works on iOS and Android and I am looking to integrate AWS SNS. I have some questions that I hope people with SNS experience could answer.
- From my understanding, AWS SNS is merely a gateway for using GCM (Android) and APNS (iOS)
- Is this correct?
- If the above is correct, imagine that I have an Android-only app, what's the point of using AWS SNS when I could directly use GCM/Firebase? I can even use Firebase with iOS.
- My app needs to allow a single User to send a notification to one or more Users.
- Is there an RESTful API I can consume to achieve this?
- Or would I need to set up API Gateway and use Lambda functions?
- How do I automatically store tokens on SNS?
- I read that I have to integrate AWS Cognito for this, or use a Proxy Server.
Edit: I've managed to write a Node.js server that uses the aws-sdk to communicate with SNS.
Questions corresponding to their above question numbers
- Still looking for answers
- Still looking for answers
- I've written a Node server, I suppose I could embed the aws-sdk code into my React Native app as it can use Node APIs
- For question #4 - I used
createPlatformEndpoint