-
Notifications
You must be signed in to change notification settings - Fork 886
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
ios crash while using in background #4352
Comments
Hi @rouddy, thanks for opening this issue. Thanks. |
sorry, it was typo. 1.28.0 is correct. here's my amplify part of my pod.
as i mentioned, i'm using flutter framework and native library of amplify.
|
Apologies for the delay. Our team is actively prioritizing and working on issues. We will provide an update as soon as we have one on the issue. |
It sounds like you're calling this while your app is in the background. You'll need to ensure the app is in the foreground before calling If that's not the case, there may be something unexpected happening in the app lifecycle due to using Flutter. |
Describe the bug
application crashed while using in background.
crash report says
when calls AWSMobileClient.getViewController() and it started from AWSMobileClient.internalSignOut
i did clearly not sign out from ui.
i using amplify for posting data to our api gateway server, and we acquire id token from cognito.
and crash occurs in background when application not on front.
i don't understand why internalSignOut called?
and in background view controller is nil and unwrapping an optional have to be avoided.
additionally i using cocoapods in flutter project.
because amplify-flutter does not support sign in with social using custom oidc provider.
here's full report from app store.
Log Messages
Steps To Reproduce
Expected behavior
getViewController can be nil.
unwrapping the optional should be checked.
Amplify Framework Version
1.2.8
Amplify Categories
Auth
Dependency manager
Cocoapods
Swift version
5.1
CLI version
1.2.8
Xcode version
13.4.1
Is this a regression?
No
Regression additional context
No response
Device
iPhone SE2
iOS Version
16.0.3
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: