-
Notifications
You must be signed in to change notification settings - Fork 201
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
The external login UI is not working when closing the dialog programmatically #3896
Comments
@medhatIbsais-Harri Would you be able to share more context on the code that is being used? That is more code snippets around how your login UI is using Amplify |
Hello @harsh62, yes sure, check the code below please, also just an important note, that after dismissing the external login view programmatically, anything related to amplify will hang even the sign out simply just add the code below and start a timer for example to dismiss the presented view "as the code in description" after 10 seconds, then everything related Amplify will hang.
|
@medhatIbsais-Harri Could you try not passing the presentation anchor and let the library create its own. So something like:
|
Hello @harsh62, is the above code working with you?, because the presentation anchor is a required parameter |
Hello @harsh62, can you please try the case I sent you, its very easy to reproduce, just add the below code, then after its being dismissed try to call
|
This is because you are forcefully dismissing the view controller in the following code snippet.
Amplify Also could you try passing |
Hello @harsh62, for passing |
@medhatIbsais-Harri I just saw now that you are using Amplify V1 ( |
Hello @harsh62, yes we have the plan to release our apps with Amplify v2, but for the current issue its also happens on lower version of Amplify, and what is the cause that its working normally on |
Amplify V1 wraps some of its own logic on top of For now, I would suggest trying out Amplify V2 with and without presentation anchor. If this issue still persists in Amplify V2, then please let us know and we will investigate further. |
@harsh62 ok thank you |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
The external login dialog is not appearing again when dismissing it programmatically, the idea that we have an app the at some states we changes the root view controller, if the user prompted the external login UI and the root view changed, if the user tried again to prompt the external login dialog, it will get stuck and the dialog will not appear again,
we have two apps, the first one uses
Amplify
and the other one usesAWSMobileClient
, it works normally on the who that usesAWSMobileClient
, but its not working onAmplify
, check the screen recording on Drive pleaseScreen recordings
you can use the code below for example to dismiss the presented view controller
Steps To Reproduce
Expected behavior
it should work normally and show the dialog
Amplify Framework Version
1.31.0
Amplify Categories
Auth
Dependency manager
Cocoapods
Swift version
5.0
CLI version
Not installed
Xcode version
15.4
Is this a regression?
No
Regression additional context
No response
Platforms
iOS
OS Version
17.4
Device
iPad mini 6th generation
Specific to simulators
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: