-
Notifications
You must be signed in to change notification settings - Fork 247
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
SystemNavigator.pop() causes Amplify exception #213
Comments
Hi @wasitu this issue appears to be related to a previously closed issue - the root cause is from how the Flutter framework behaves: Please see the workarounds suggested in the issue as a possible solution for your problem:
https://medium.com/stuart-engineering/%EF%B8%8F-the-tricky-task-of-keeping-flutter-running-on-android-2d51bbc60882 |
@fjnoyp Yeah, I saw those workaround but I think its not that. |
Ah I see @wasitu. Could you provide the full error log you're getting here? Does keeping a |
@fjnoyp
|
I fixed it temporally like this. But I dont have much time (and smart brain) to test and think if it's ok or not. Just working for me. |
I'm having the exact same issue mentioned by @wasitu. |
Hi guys, Its working now independently from how the app is closed. |
@Rayv1 I found different solutions in the link you provided. Which solution worked for you? |
This Solution worked:
The code in the MainActivity() should look like this:
|
Hi guys. I tried the above solution and it seems to work in the back pressed case but it still causes crashes on Crashlytics. @Amplifiyer is there any schedule to have this bug fixed? In my opinion it is a really important bug because it crashes the app. |
Describe the bug
Flutter's SystemNavigator.pop() causes Amplify exception by starting app again.
(Using android's back button for closing app causes the same problem)
To Reproduce
Steps to reproduce the behavior:
SystemNavigator.pop()
for close app on root page (or press android's back button)Platform
Amplify Flutter current supports iOS and Android. This issue is reproducible in (check all that apply):
[×] Android
[] iOS
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: