Can someone provide a simple example of using Amazon SNS to send and receive push notifications in the React Native section?
I have an Amazon SNS service setup, and I can post a message from the website and show it on the iPhone - if I manually enter the device token and initiate the publication on the Amazon website. Now I want to automate the process of push token registration in Amazon SNS and allow the application to publish push for SNS.
I know that Amazon has a very new project to integrate its SDK into React Native, but I cannot get it to work. Support on this repo is also worth it, so I hope someone here can help.
Now I get: Undefined is not an object (evaluating 'cognateClient.initWithOptions')
The GitHub release mentions something similar on Android, but obviously this doesn't help in my iOS app.
What I'm looking for is a step-by-step breakdown of how to integrate Amazon code into an existing RN application. They don't provide a standard Node package, so I'm struggling to figure out how to get React Native code and the SDK to play well with Xcode.
Any suggestions? Thanks!
source share