AWS SNS and React Native - amazon-web-services

I've been trying to connect to AWS SNS using react native.
I know the React Native AWS SDK is out (sort of)... But I'm at a lost with the instructions to get started along with Cognito.
I've tried writing generating my own signature but that's been challenging (using v2 and v4 signature). My signature's haven't been matching :(.
I've also tried using react-native-aws-signature (https://www.npmjs.com/package/react-native-aws-signature).
Any suggestions, on what's the best approach? Perhaps I've been generating my signature incorrectly?

Related

Is AWS SNS required for Firebase Cloud Messaging?

I have a production server running an application and also a mobile app for the same, I want to use FCM as my push notification service , but what I'm seeing from the google website and most stack overflow answers is somewhat conflicting. Stack has a lot of answers on how to get FCM running on SNS, I want to know is it possible to simply use FCM (as its free) or would I need SNS , if not why bother setting up SNS for FCM? Keep in mind I only want to use FCM through an API for a django server and not through the firebase console.
The Firebase documentation is clear on how to get started, and nowhere does it state that SNS is required. Just follow the documentation for your client app platform.
If you want to send messages from your AWS backend, you can just use the Firebase Admin SDK for your chosen backend OS. It will also not require SNS.
If you are having a specific problem with FCM, you should ask a new question explaining what you've done so far that doesn't work the way you expect, along with your code and links to the documentation you're working with.

How Should I integrate Amazon RDS in Flutter? Any native dart support package?

how to use AWS RDS in flutter dart code?
I went through - this post
It says -
I work on the AWS SDK team. I am not aware of any plans to support Flutter at this point. I will take this to my team as a feature request and will post back
Should I do as suggested here?
Build your own service layer using HTTP, gRPC that talks to some backend service that provides access to a data store. You can do this with Express, Rails, CloudFunctions, etc.
You can either use dart code to do HTTP/gRPC, or use Platform channel to wrap dart code around native iOS and Android code of AWS official SDK.
On another note, I'm highly concerned when you connect directly from mobile (Flutter) to database (AWS RDS). Please be aware that anything on mobile app can be reversed engineer, and your database connection credential is not safe. It's recommended to have only backend proxy, or at least severless (such as AWS lambda function) connect directly to database (not mobile or web frontend). The only exception is with Firebase Realtime Database because it has seamless integration with Firebase Authentication

How to call Amazon API Gateway in LibGDX?

I'm developing a game for iOS and Android using LibGDX. I would like to use Amazon Web Services and I haven't found if there is a library or a way to access API Gateway from my (:core) project.
I've worked with API Gateway in Android and iOS native projects and is very easy to implement it because Amazon has SDK Generation for both platforms. But since there's not a way to export for Java, it seems to bee a little tricky to make api calls from the core project.
I tried to use amazon skd for android inside (:core) but it didn't worked.
May be making a direct Http request using HttpURLConnection, but I don't know how to do it and although it won't map the response objects.
I don't have specific experience with LibGDX, but API Gateway helps you generate REST based APIs. There are a number of Java libraries that will help you interact with REST based APIs, such as rest4j. As you note, you will have to either forgo using API Gateway's Models or build your own marshalling code on top whatever solution you use for interacting with your API.

React Native AWS image upload

I am making an app in React native and will be using Amazon Web Services for image upload, I was wondering if the AWS node SDK can be used in my React Native app because I have read multiple outdated blogposts that said they were having issues, any one tried it out? (Node version: 4)
Thanks
The AWS Node SDK relies on several Node libraries like http that don't exist in React Native and are likely hard to reimplement faithfully. What I'd do is either use the native AWS SDKs and bridge them to JS, or write a small JS client just for S3 and look at the AWS Node SDK to see how they do authentication.
there is existing node packages like react-native-aws-signature that can help you do the authentication for AWS request for React-Native.
There is also a new library that has just been released to the official AWS repository which has full React Native support including a Storage module for interacting with S3 using signed requests: https://github.com/aws/aws-amplify

Capabilities of Amazon SNS Mobile Push Notifications

I have a project in my mind where an administrator sends a push notification to all users from his Smartphone, if a shopkeeper has to notify all his customers for instance. The procedure will be as follows:
1. Admin Mobile-to-Cloud
2. Cloud-to-UserMobiles
Does Amazon SNS support this procedure ?. I have made a quick research and it seems like that it only supports Cloud-to-Mobile and not the other way round.
AWS Mobile SDK for Android and iOS support AWS SNS API, so you can easily implement the functionality by going through the steps in this link if you're using Android:
http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html
Remember to implement the functionality in step 4 in an Android project instead of Java (this will be an administrator app in your case).