24 questions
0
votes
1
answer
41
views
Amplify Flutter + Cognito Identity Pool works via AWS CLI but fails in app (“No identity pool registered for this account”)
I’m integrating AWS IoT Core with a Flutter app that already uses Amplify Auth (Cognito User Pool).
To allow IoT connections, I added a Cognito Identity Pool section to my amplifyconfiguration.dart (...
1
vote
0
answers
93
views
Persist Session and Tokens After OAuth2 Sign-in Using Amplify Flutter
I'm developing a mobile app where users can log in through two methods: direct username/password login via Cognito Sign-In and OAuth2 sign-in with a third-party system.
For OAuth2 login, I redirect ...
0
votes
1
answer
149
views
Amplify.Api.get issue in Flutter Web
I'm asking this question in a few places in hope someone with more clues than me can help :-)
I am having a problem using the AdminQueries function in my flutter app when running in web.
This is my ...
1
vote
0
answers
223
views
amplify_flutter dependency breaks build
I'm completely new to flutter and all the concepts behind building android apps. So I thought I'd follow the budget_tracker tutorial: https://docs.amplify.aws/flutter/start/getting-started/setup/
...
1
vote
1
answer
239
views
How to Retrieve Device Key for ConfirmDevice API with Cognito Amplify in Flutter
I'm working on a Flutter project where Cognito Amplify is handling authentication. I'm trying to implement a feature that requires me to call the confirmDevice API, but I'm facing an issue regarding ...
0
votes
2
answers
86
views
Extract value of an element from object instance
Here is my code to get the current users phone number.
Future<void> getCurrentUser() async {
try {
AuthUser user = await Amplify.Auth.getCurrentUser();
print(user.signInDetails)...
0
votes
1
answer
946
views
Unable to sync after Amplify.Datastore.clear()
I have a home page that does the initial datastore sync in the init() function. There are QueryPredicates that are based on a variable that can change (on a different page).
So basically, after I ...
1
vote
0
answers
128
views
Amplify Flutter returns null when creating a manyToMany item
I am making a chat application which has two tables like below:
type User @model @auth(rules: [{ allow: public, operations: [create, read], provider: iam }]) {
id: ID!
# relation
rooms: [...
1
vote
0
answers
218
views
Unable to update appClientId locally in Flutter using AWS Amplify
I am using AWS Amplify for Flutter. I generated many configurations using the CLI and pushed them to AWS using amplify push. For some reason, I had to delete the App client created using Amplify after ...
1
vote
0
answers
257
views
Login with different user using amplify_auth_cognito for flutter
When using
await Amplify.Auth.signInWithWebUI(provider: AuthProvider.google);
to sign in and
await Amplify.Auth.signOut();
to sign out,
If I sign in, the very first time I am prompted to select a ...
0
votes
1
answer
215
views
File downloaded from Amplify Storage is empty in iOS
downloadFile seems to work fine (there is no errors) but when readAsString called content is empty.
Same code works in Android. What might be the difference causing this to happen in iOS?
Using ...
0
votes
1
answer
1k
views
Querying Many-To-Many Relationships in AWS Amplify
I have two models in my graphql schema and the one I am trying to query on, Sessions, has two @belongsTo directives (read on a forum this matters). I can successfully save these models and view them ...
1
vote
3
answers
533
views
LateError (LateInitializationError: Field 'customTypeSchemas' has not been initialized.) Amplify Plugins Error
I am trying to connect Amplify Api to my project and keep getting an error that reads LateError (LateInitializationError: Field 'customTypeSchemas' has not been initialized.) (Screenshot of the error ...
6
votes
1
answer
4k
views
Flutter Amplify Cognito, no tokens using fetchAuthSession
I'm trying to implement authentication in my Flutter app using Cognito. I'm authenticating against an existing userPool which I've been successfully using for the past year in my React app.
However, ...
4
votes
0
answers
819
views
Subscription error for <Type>: GraphQLResponse.Error while Syncing Models from Datastore
I have several models defined in my schema.graphql file. One of which is:
type QuizCategory @model {
id: ID!
QuizCategoryName: String!
QuizCategoryDescription: String!
QuizCategoryThumbnailUrl:...
2
votes
0
answers
707
views
Configure amplify-flutter for existing User pool without Cognito Identity pool
How to configure aws amplify in flutter for an existing user pool? There is no identity pool configured for this user pool. I want to configure it without creating an identity pool. Following is my ...
1
vote
1
answer
1k
views
Unable to list objects from a S3 Bucket using AWS Amplify (Flutter)
I am trying to list all the items inside an S3 storage bucket. I have made my bucket public and my storage type is also set to guest but still when I run the Amplify.Storage.list() method it throws an ...
-1
votes
1
answer
296
views
Can I use fire base to host my flutter web app while still using AWS amplify for Cognito and DataStore
Hi I was wondering if it was possible to host my flutter Web app on Firebase while using AWS Amplify for its DataStore and Cognito services or does AWS NOT support Flutter Web at all yet. Im having ...
3
votes
1
answer
1k
views
Check if user phone_number already exist in aws cognito userpool
I am using serverless lambda functions on aws for user authentication in cognito user-pool. I am asking the user only for his phone_number and sending him otp for verification. The problem arises, ...
1
vote
0
answers
378
views
Image taking too long to upload on Amplify S3 Storage using Flutter
I have a simple app that takes picture of something and uploads it to the Amplify S3 Storage using its flutter library amplify_storage_s3. The upload time is about 30s-2mins for a jpeg file that is at ...
3
votes
2
answers
2k
views
Amplify Flutter: how to implement Auto Login and obtain authToken
I'm using Amplify Flutter to implement user authentication in my Flutter app and can't figure out the following two things:
Auto-login: How do I implement auto-login so that users remain logged in ...
0
votes
1
answer
1k
views
Flutter app throwing error while calling configure method of Amplify on application resume in android device
In my flutter project, I'm using the AWS Amplify storage plugin to upload files.
For that, I have added below dependencies
dependencies:
flutter:
sdk: flutter
amplify_storage_s3: <1.0.0
...
5
votes
2
answers
1k
views
Flutter sign up confirm via phone otp in aws amplify
How to add phone and confirm sign up via phone otp and not with email otp
0
votes
1
answer
742
views
amplify_flutter any which doesn't exist (could not find package amplify_flutter at https://pub.dartlang.org),
I am trying implement amplify-flutter from this document but when i run pub get it showing "depends on amplify_flutter any which doesn't exist (could not find package amplify_flutter at https://...