aws-sdk-android-samples | demonstrate various aspects of the AWS SDK | SDK library
kandi X-RAY | aws-sdk-android-samples Summary
kandi X-RAY | aws-sdk-android-samples Summary
AWS SDK for Android Samples.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize UI .
- Initialize the lexer client .
- Initializes the polly client .
- When a remote push message is received from the Android app .
- Create a new notification channel .
- Called when a navigation item is clicked .
- Start download an image .
- Obtain the AWSCoresProvider .
- Handles a start command .
- Creates the client and starts streaming video .
aws-sdk-android-samples Key Features
aws-sdk-android-samples Examples and Code Snippets
Community Discussions
Trending Discussions on aws-sdk-android-samples
QUESTION
On the github page https://github.com/aws-amplify/aws-sdk-android it says:
For new projects, we recommend interacting with AWS using the Amplify Framework.
On the Amplify Framework page about JS developement (https://docs.amplify.aws/lib/q/platform/js), there's a library called PubSub that should do MQTT connection.
But if I switch to Android developement (https://docs.amplify.aws/lib/q/platform/android), that option is not there anymore.
Is there a way to use MQTT with Amplify and GraphQL? Or I need to refer to the android aws sdk and more specifically to this example: https://github.com/awslabs/aws-sdk-android-samples/blob/main/AndroidPubSub/src/com/amazonaws/demo/androidpubsub/PubSubActivity.java
...ANSWER
Answered 2020-Jul-10 at 21:38Yes, you can use the AWS IoT SDK for Android. The AWS IoT SDK uses MQTT as its messaging transport. An example use is here. The source code is here. Here is the artifact in maven.
QUESTION
I am using Amazon KVS Video Streaming Service. I need help in below 2 points.
- I know that vedio streaming can be done in 2 ways. First using web RTC and second using KVS video Streaming. I want to know how can it be done using KVS video Streaming? I have Access Key ID and Secret Access Key.
- I want to achieve this without creating cognito user.
- Is it possible to make this happen without pool ID ?
I am following below reference.
...ANSWER
Answered 2020-Jul-10 at 18:21The second argument to the KinesisVideoAndroidClientFactory is a generic AWSCredentialsProvider
.
The AWSMobileClient
, which provides authentication via Cognito, is one example of an AWSCredentialsProvider
.
However, there are other implementations of the AWSCredentialsProvider
. One of the simplest possible solutions is to use a StaticCredentialsProvider
, to provide some BasicAWSCredentials
.
In Kotlin:
QUESTION
I'm new to learning AWS and I'm trying to figure out if my use-case is possible. I want to create a mobile app where the user can login (email/facebook/google etc.) and then subscribe to a few MQTT topics on aws IoT to receive realtime sensor data for a gardening system. There are many tutorials on AWS that show you how to do this (prime example: https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md)
but all of them require you to download certificates, insert app IDs, secret keys etc. in the code/keystore itself. I'd really like to avoid all of this and just use the login as all the authorization you would need to subscribe to these topics.
is this possible? or do I need to build some custom system?
...ANSWER
Answered 2020-May-06 at 18:39Short answer, Yes, it is possible. To do that you should do the following:
Create Cognito user pool.
User Pool ID
andApp client id
will be used in the next step. You can find more information here.Create Cognito Identity pool. Under
Authentication Providers
you should giveUser Pool ID
andApp client id
, more information here. When you create this, it will create twoRoles
for Authenticated and Unauthenticated users in IAM. You should add IoT access permissions (Connect, Publish, Subscribe and Receive) to those roles.On client side (your App), after choosing your preferred AWS SDK (Android, iOS, React, JS, etc.) and configuring
User pool ID
,Identity pool
andApp client ID
you should first authenticate the user by sending the user information (usually Email/Username and Password) to the Cognito user pool. In return, you will get some tokens.Among those IdToken (JWT) will be sent to the Identity pool and in return you will get
User Identity ID
along with credentials (accessKeyId, secretAccessKey, sessionToken) needed to access AWS other services like IoT.Last step would be using
aws-iot-sdk
for your App along with those credentials to publish and subscribe to your IoT topics. You can find more information aboutaws-iot-sdk
here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aws-sdk-android-samples
You can use aws-sdk-android-samples like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the aws-sdk-android-samples component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page