For creating a SNS endpoint in Android they give us a tutorial on how to create a SNS endpoint.
https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html
It looks a bit outdated and the methods are depreciated. Currently I am using AWS Amplify for my mobile app. How would I do it using the mobileclient? I can't seem to find any tutorials or docs on it. Could someone explain or link me? Thanks
The tutorial you mentioned is for creating a mobile endpoint so that SNS can send push notifications.
The Amplify SDK for Android handles this using Amazon Pinpoint. The Amplify docs provide a tutorial on how to setup Push Notifications here.
Related
Is it possible to create a flow using AWS AppFlow that relies on a connector, created using the custom connector SDK, that is launched on event and more particularly on a webhook event.
I did not find any information on the subject in github of the custom connector SDK.
https://github.com/awslabs/aws-appflow-custom-connector-python
Thanks in advance
I looked at the github documentation: https://github.com/awslabs/aws-appflow-custom-connector-python
How to use Ionic+Capacitor to register Push Notifications via Amazon SNS
Any guide on how to properly use ionic and capacitor to acquire tokens for SNS? I’ve seen the PushNotifications plugin but I’m not sure what “register” does? Do i have to setup my firebase and apn if im only using Amazon SNS?
Any guide/tips or overview steps will be useful.
Thanks
Hoping this would help anyone starting their Ionic+Capactior + FCM/APN + Amazon SNS journey
Device Token Setup
Follow this guide: https://capacitorjs.com/docs/guides/push-notifications-firebase. Follow all of them except all of the iOS Firebase ones (unless youre planning to use FCM to push to iOS as well)
Everytime the plugin runs, it should return a device token, log that or save that somewhere.
SNS Platform Setup
Feel free to follow any guide that teaches you how to create an FCM endpoint and an APNS endpoint. They're pretty straightforward, Cloud Messaging URL for FCM and a .p8 APNS key for iOS.
SNS Endpoint
Open your created platform application and Create a new endpoint, just chuck in the device token from the plugin. FCM and APNS have different token formats, APNS are mostly alphanumeric and all caps, while FCM are with special chars and mix of capital and small letters.
Of course this is just to establish a base point, I'm still working on trying to make them into services to actually push notifications via code. Good luck!
i am noobie to AWS, i have a question!? where do i deploy this API code? i am not sure on and how to deploy the API code that is been created.
I am trying to download the chat logs for LEX bot.
I am following this documentation https://docs.aws.amazon.com/lex/latest/dg/conversation-logs-configure.html. can someone help me figure out where do i write the API request that is given in the documentation.
You deploy code to whichever server/service you're using, it's all upto you.
Lex is a service that you interact with either through the console, the SDK or via the CLI.
I want to receive notifications using amazon simple notification service in my android,iOs and web apps. I found, how to enable this in android and ios, but could someone please help me that is it possible to do the same in my web app(node js)? If yes, then how??
Thanks
Have a look at the following gist -> https://gist.github.com/tmarshall/6149ed2475f964cda3f5
It shows you how to interface with SNS from a Node.js app.
And here is the documentation to the SDK itself - http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SNS.html
You would need to support receiving or subscribing to the SNS notifications in the web app. iOS and Android come with services to process push notifications, you would have to build this for your app.
You can send SNS to an http endpoint but it may be easier for you to send notifications to SQS for your node app to consume.
I can't find an npm package for subscribing to SNS but there is a good blog post here https://deepstream.io/blog/publishing-aws-sns-messages-to-browsers-tutorial/
I am working on an Android and iOS app using Xamaring and I want to send push notifications via Amazon SNS.
But I don't know how it works exactly. In my case, the app is a kind of a chat, where there is a plenty of users sending messages to each other.
I wonder how to register automatically the device's token to the Amazon SNS.
Who register the token? The backend or the application side?
And how would I do that?
Note: I'm using NodeJS as backend.
Hopefully you've found it on your own, but the SNS documentation is pretty solid on this front. Work your way through all the docs before you begin. With a Node backend you'll be using the AWS JS library, which is also well documented.
Start here: AWS SNS Mobile Push
then read about token management