GoogleSignIn-iOS icon indicating copy to clipboard operation
GoogleSignIn-iOS copied to clipboard

OIDExternalUserAgentIOS not run in main tread

Open jaroshevskii opened this issue 7 months ago • 2 comments

Describe the bug presentationAnchorForWebAuthenticationSession, -[UIView window] must be used from main thread only

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Tap on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment

  • Device: MacBook Pro 2019
  • OS: macOS 15
  • Browser: embedded iOS app popup browser

Additional context

Image

jaroshevskii avatar Jun 13 '25 07:06 jaroshevskii

Hey! Feel free to submit a bug this bug to https://github.com/openid/AppAuth-iOS/issues as it seems like it'd be relevant to AppAuth. In any case, I took a look and did not come across this warning. Is this happening when you open the DaysUntilBirthday sample app perhaps or is this your own app?

brnnmrls avatar Jul 16 '25 17:07 brnnmrls

Found same issue. @jaroshevskii make sure you call GIDSignIn.sharedInstance.signIn(... from main thread. Interesting thing that nested await calls don't guarantee to be on Main as first one.

vg-identance avatar Jul 29 '25 09:07 vg-identance