Questions tagged [aws-amplify-sdk-android]

53 questions
1
vote
2 answers

How to create an empty folder in aws S3 bucket with using Android Sdk?

I understand the concept of folders and objects in Aws S3 bucket, that there is no folder and all are objects. But I need to create an empty folder where user can enter and upload their files. I have tried several things like adding a test .txt…
1
vote
3 answers

How to delete a file/object stored in an AWS S3 bucket, using the Android SDK?

I have searched the latest AWS docs for the Android SDK, on the official site. Unfortunately I couldn't find anything related to this. How can I delete a particular -- or multiple -- file(s) or object(s) using the Android SDK?
0
votes
0 answers

AWS - Android - Conflict resolver rejects mutation

In my android kotlin project I'm trying to delete data using graphQL mutation fun deleteAddressGraphQL(addressId: String) { // Query the Address item to get the current version Amplify.API.query( …
0
votes
0 answers

AWS Cognito Amplify.Auth Password less signIn using CUSTOM_AUTH_WITHOUT_SRP authFlowType gives ServiceException This sign in method is not supported

I am trying Password less signIn using "CUSTOM_AUTH_WITHOUT_SRP" as authFlowType in AWS Cognito Amplify.Auth but it gives me ServiceException with message "This sign in method is not supported. I also tried with "CUSTOM_AUTH" as authFlowType but…
0
votes
0 answers

I am trying to implement a social oauth for a flutter app, but the screen gets stuck after account selection in both google and facebook auth

I am trying to implement a social oauth for a flutter app, but the screen gets stuck after account selection in both google and facebook authentication. This was working until a few weeks ago, but suddenly stopped working last week, no one has made…
0
votes
0 answers

AmplifyException (You are currently signed out) after success Social Sign In

I use amplify for social login in my app. Gradle: implementation "com.amplifyframework:core:$amplify_version" implementation "com.amplifyframework:aws-auth-cognito:$amplify_version" amplify_version = '2.8.5' In my Application…
0
votes
0 answers

Received 3 OTP Codes at first time in Email (Amplify Android)

`Hi , I'm using this method to send OTP code in my email , but at first time , I received 3 different codes , In second time not problem on that , what the case ? We have on here , View Model Class Fragment Class And JSON amplify Config. private var…
0
votes
0 answers

How to fetch a field of a model with AWS Amplify API & DataStore in Flutter?

How do I query for a specific field instead of the whole model using AWS Amplify's Api & DataStore in Flutter? I'm wondering if there's a similar function to Firebase's document fetching in a collection. Thanks! Instead of final user = await …
0
votes
1 answer

AWS Amplify Android

I'm using AWS Amplify v2.3.0 on Android Studio. Looking AWS documentation I can use Kotlin-Callback or Kotlin-Coroutines code. The callbacks call works for me. But the coroutines not working because IDE tell me that needs more parameters. I need to…
0
votes
0 answers

AWS Amplify and AWS Cognito Android (Native), token expiration issue after 30 days

I have an Android(Native) app with Amplify Backend(amplify SDK version 1.6.4) The Refresh Token from AWS-Cognito UserPool is expiring after 30 days, as mentioned in AWS Amplify "Refresh Token has expired" after less than configured time (30…
0
votes
0 answers

I want to set server endpoint to read files in third-party S3 storage from Android app with Amazon Amplify libraries

We have a S3 file storage (seaweedfs), that supports Amazon Amplify. Now I can have access to files from this storage with command line from my laptop with AWS CLI. I need to make an android app to read files from this storage with Amazon Amplify…
0
votes
1 answer

Can't redirect back to my app amplify signInWithWebUI

I'm trying to implement AWS sign in with web UI on my app, followed the documentation and it's working fine but I can't redirect back to my app after sign in. In my amplifyconfiguration.json : "Auth": { "Default": { …
Mr. Thanks a lot
  • 235
  • 4
  • 17
0
votes
0 answers

Android Amplify connection drop listener

I am uploading a file using Amplify.Storage.uploadFile(). The problem is when the internet connection drops, the uploadFile method hangs so I don't have a way to figure it out and to re-upload the file. I saw…
Uriel Frankel
  • 14,304
  • 8
  • 47
  • 69
0
votes
0 answers

Write unit test cases for Amplify Android SDK function (Auth)

I want to write unit test cases for Amplify Android SDK for Auth functionality. I want to write unit test cases for below function. Amplify.Auth.signIn() Amplify.Auth.signUp() Amplify.Auth.fetchAuthSession() To write unit test cases for Amplify…
0
votes
0 answers

Sending custom data in the SignIn with AWS Amplify using CUSTOM_AUTH flow in Android

I need to send some custom data in the AWS Amplify's SignIn() request while using the CUSTOM_AUTH flow type. My custom data will the be telling the backend which OTP generation service to use during SignIn (SMS or WhatsApp based OTP). But the…