-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow app startup caused by Amplify V1 DataStore in Android #5450
Comments
Hi @joshuamoreno1, thank you for submitting this issue. We will take a look at this issue and get back to you when we have any updates or questions. |
Hi @joshuamoreno1, can you try to update to Amplify DataStore v1.8.0? This version updated the Amplify Android package being consumed, which contained several improvements. Please let us know if that resolved your issue. |
Hi there!, I recently update to that version and deployed in a Xiaomi and Samsung device but still having the same problem. New Android plugin settings:
Do you know may be what could be the problem? Thanks, |
Hello @joshuamoreno1, currently Amplify Datastore v1 is in maintenance mode, I would recommend upgrading to v2 and see if the issue is resolved. Please see the documentation for reference. |
Guys, You are awesome!!!, all is working perfect and I dont have the erros any more. Thanks a lot!!! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Description
I’m experiencing issues with my Flutter app on Android devices when using AWS Amplify DataStore. The app works perfectly on iOS devices, but it takes a long time to start on physical Android devices. During debugging, I found that it gets stuck at this line:
await Amplify.configure(amplifyconfig);
After 1 to 2 minutes, the app finally starts, but I also notice it slows down when DataStore synchronization begins. The operating system shows an alert indicating that the app is not responding, but if you wait, it eventually continues to function correctly.
The only thing that i see in logs related to DataStore is this:
However, this issue does not occur on iOS devices. I also checked the AppSync API logs in CloudWatch, and all synchronization queries and other requests are executed successfully without any errors. It’s possible that on Android, the operations are executed sequentially, whereas on iOS, they are executed in parallel.
This is my flutter doctor info:
And gradle files:
android/gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
android/build.gradle:
I truly appreciate your help with this issue, as it is currently blocking the release of my app on the Google Play Store. I’ve only been able to launch the app on iOS so far due to this performance problem on Android. Your support means a lot to me, and I’m looking forward to any insights you can provide to resolve this.
Categories
Steps to Reproduce
Build the Android APK:
Start the App with a Logged-In User:
Observe the App Behavior:
await Amplify.configure(amplifyconfig);
line.Screenshots
No response
Platforms
Flutter Version
3.19.4
Amplify Flutter Version
1.7.0
Deployment Method
Amplify CLI (Gen 1)
Schema
The text was updated successfully, but these errors were encountered: