René's URL Explorer Experiment


Title: [expo] iOS native Google sign-in fails with "Unable to open Safari." — getPresentingViewController picks an arbitrary scene and window · Issue #9504 · clerk/javascript · GitHub

Open Graph Title: [expo] iOS native Google sign-in fails with "Unable to open Safari." — getPresentingViewController picks an arbitrary scene and window · Issue #9504 · clerk/javascript

X Title: [expo] iOS native Google sign-in fails with "Unable to open Safari." — getPresentingViewController picks an arbitrary scene and window · Issue #9504 · clerk/javascript

Description: Package @clerk/expo@3.6.5 (useSignInWithGoogle, iOS). The same code is present verbatim in @clerk/expo-google-signin@1.0.1, so upgrading does not resolve it. What happens On a release iOS build, tapping "Continue with Google" never reach...

Open Graph Description: Package @clerk/expo@3.6.5 (useSignInWithGoogle, iOS). The same code is present verbatim in @clerk/expo-google-signin@1.0.1, so upgrading does not resolve it. What happens On a release iOS build, ta...

X Description: Package @clerk/expo@3.6.5 (useSignInWithGoogle, iOS). The same code is present verbatim in @clerk/expo-google-signin@1.0.1, so upgrading does not resolve it. What happens On a release iOS build, ta...

Opengraph URL: https://github.com/clerk/javascript/issues/9504

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[expo] iOS native Google sign-in fails with \"Unable to open Safari.\" — getPresentingViewController picks an arbitrary scene and window","articleBody":"### Package\n\n`@clerk/expo@3.6.5` (`useSignInWithGoogle`, iOS). The same code is present verbatim in\n`@clerk/expo-google-signin@1.0.1`, so upgrading does not resolve it.\n\n### What happens\n\nOn a release iOS build, tapping \"Continue with Google\" never reaches Google. The promise\nrejects with one of:\n\n- `Unable to open Safari.`\n- `The authorization attempt failed for an unknown reason`\n- `No presenting view controller available`\n\nRetrying reproduces it every time within the same session. Sign in with Apple on the same\nbuild is unaffected.\n\n### Cause\n\n`ios/ClerkGoogleSignInModule.swift` resolves the presenting controller like this:\n\n```swift\nprivate func getPresentingViewController() -> UIViewController? {\n  guard let scene = UIApplication.shared.connectedScenes.first as? UIWindowScene,\n        let window = scene.windows.first,\n        let rootVC = window.rootViewController else {\n    return nil\n  }\n  ...\n}\n```\n\n`connectedScenes` is a `Set` and `UIWindowScene.windows` is unordered, so `.first` returns an\narbitrary element in both cases — neither checks `activationState` nor `isKeyWindow`. An app\nwith more than one window (splash, keyboard, an overlay from another module) can therefore\nhand `GIDSignIn` a controller that is not in the visible hierarchy.\n\nThat produces the two observed outcomes:\n\n- resolution returns `nil` → the module's own `\"No presenting view controller available\"`\n- resolution returns an off-screen window → `GIDSignIn` cannot present its authorization\n  session and AppAuth reports `OIDErrorCodeSafariOpenError`, surfaced through\n  `handleSignInResult` as `error.localizedDescription` → `\"Unable to open Safari.\"`\n\n### Suggested fix\n\n```swift\nprivate func getPresentingViewController() -> UIViewController? {\n  let scenes = UIApplication.shared.connectedScenes.compactMap { $0 as? UIWindowScene }\n  let scene = scenes.first { $0.activationState == .foregroundActive }\n    ?? scenes.first { $0.activationState == .foregroundInactive }\n    ?? scenes.first\n\n  guard let window = scene?.windows.first(where: { $0.isKeyWindow })\n          ?? scene?.windows.first(where: { !$0.isHidden && $0.rootViewController != nil }),\n        let rootVC = window.rootViewController else {\n    return nil\n  }\n\n  var topVC = rootVC\n  while let presentedVC = topVC.presentedViewController, !presentedVC.isBeingDismissed {\n    topVC = presentedVC\n  }\n  return topVC\n}\n```\n\nThe `isBeingDismissed` guard covers a related case: a controller mid-dismissal is still\nreachable through `presentedViewController` but can no longer present.\n\n### Environment\n\n- Expo SDK 55, React Native 0.83.2, Hermes, Fabric\n- iOS 26.5 / 26.6, physical devices and simulator\n- `GoogleSignIn ~> 9.0` as declared by `ClerkGoogleSignIn.podspec`\n","author":{"url":"https://github.com/Fastdrecad","@type":"Person","name":"Fastdrecad"},"datePublished":"2026-08-19T15:47:58Z","url":"https://github.com/clerk/javascript/issues/9504"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ca61cfe7-346b-b8e2-3c5c-5c696dfdd932
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA052:1F76:393F77:4EBE29:6AFB632F
html-safe-nonced24e31e96f02a1a2e5440e8177ce41fffdfa4bacde58db0e01c9670819d81b39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDUyOjFGNzY6MzkzRjc3OjRFQkUyOTo2QUZCNjMyRiIsInZpc2l0b3JfaWQiOiIyOTY4OTgwMDM0NDU2MDg1Mjk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd7ab3bdb516d8b28abfaca25c0c9cb6794cb5fe21eb08f1a9809350be35c0035
hovercard-subject-tagissue:5194516961
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/clerk/javascript/9504/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7fd296a17d1a8446de2dd2c903f684567228acbf517b2e3ed84f2d13edae3b41/clerk/javascript/issues/9504
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7fd296a17d1a8446de2dd2c903f684567228acbf517b2e3ed84f2d13edae3b41/clerk/javascript/issues/9504
og:image:altPackage @clerk/expo@3.6.5 (useSignInWithGoogle, iOS). The same code is present verbatim in @clerk/expo-google-signin@1.0.1, so upgrading does not resolve it. What happens On a release iOS build, ta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameFastdrecad
hostnamegithub.com
expected-hostnamegithub.com
Noneea33d13c96d0ff66bd8fa906b193d2213536b78cb06b0c50a4632c58b1418f94
turbo-cache-controlno-preview
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release59ef97164c52cf59bd10558ddec9c4f482763988
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/clerk/javascript/issues/9504#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F9504
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fissues%2F9504
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/issues/9504
Reloadhttps://github.com/clerk/javascript/issues/9504
Reloadhttps://github.com/clerk/javascript/issues/9504
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues45 (45)https://github.com/clerk/javascript/issues
Pull requests109 (109)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/9504
New issuehttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/9504
#9505https://github.com/clerk/javascript/pull/9505
[expo] iOS native Google sign-in fails with "Unable to open Safari." — getPresentingViewController picks an arbitrary scene and windowhttps://github.com/clerk/javascript/issues/9504#top
#9505https://github.com/clerk/javascript/pull/9505
https://github.com/wobsoriano
https://github.com/Fastdrecad
Fastdrecadhttps://github.com/Fastdrecad
on Aug 19, 2026https://github.com/clerk/javascript/issues/9504#issue-5194516961
wobsorianohttps://github.com/wobsoriano
on Aug 19, 2026https://github.com/clerk/javascript/issues/9504#event-29696905705
https://github.com/wobsoriano
wobsorianohttps://github.com/wobsoriano
on Aug 19, 2026https://github.com/clerk/javascript/issues/9504#issuecomment-5345758336
#9505https://github.com/clerk/javascript/pull/9505
wobsorianohttps://github.com/wobsoriano
completedhttps://github.com/clerk/javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#9505https://github.com/clerk/javascript/pull/9505
on Aug 19, 2026https://github.com/clerk/javascript/issues/9504#event-29701588599
Sign up for freehttps://github.com/signup?return_to=https://github.com/clerk/javascript/issues/9504
Sign in to commenthttps://github.com/login?return_to=https://github.com/clerk/javascript/issues/9504
wobsorianohttps://github.com/wobsoriano
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.