Skip to content

fix(ios): Remove spurious onExit firing during Connect onboarding identity verification#2447

Merged
gimenete-stripe merged 2 commits into
masterfrom
fix/connect-onboarding-spurious-exit
May 11, 2026
Merged

fix(ios): Remove spurious onExit firing during Connect onboarding identity verification#2447
gimenete-stripe merged 2 commits into
masterfrom
fix/connect-onboarding-spurious-exit

Conversation

@gimenete-stripe
Copy link
Copy Markdown
Contributor

@gimenete-stripe gimenete-stripe commented May 8, 2026

Summary

Remove the viewWillDisappear/isBeingDismissed handler from ConnectAccountOnboardingViewController. It was causing spurious onExit events when ASWebAuthenticationSession (e.g. identity verification) presented over the Connect onboarding modal.

The video shows that onExit is being triggered in two situations:

  • User dismisses ASWebAuthenticationSession
  • User dismisses the onboarding modal.
Screen.Recording.2026-05-11.at.10.53.14.mov

Motivation

On iOS, when ASWebAuthenticationSession presents its Safari view controller over the fullScreen modal, UIKit calls viewWillDisappear and reports isBeingDismissed = true — even though the user didn't close anything. This triggered the full exit chain mid-flow, dismissing the modal unexpectedly. Android is unaffected because it doesn't use this pattern.

Since the modal uses .fullScreen presentation (which disables swipe-to-dismiss), the close button is the only valid user exit path — the viewWillDisappear handler was unnecessary.

Fixes RUN_MXMOBILE-16445.

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • This PR does not result in any developer-facing changes.

…ntity verification

ASWebAuthenticationSession presenting over the fullScreen modal triggered
viewWillDisappear with isBeingDismissed=true, causing the exit chain to fire
mid-flow. Since .fullScreen prevents swipe-to-dismiss, the close button is
the only valid user exit path — the viewWillDisappear handler was unnecessary.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@gimenete-stripe gimenete-stripe marked this pull request as ready for review May 11, 2026 10:48
@gimenete-stripe gimenete-stripe requested review from a team as code owners May 11, 2026 10:48
@gimenete-stripe gimenete-stripe merged commit 3cb8a2b into master May 11, 2026
8 checks passed
@gimenete-stripe gimenete-stripe deleted the fix/connect-onboarding-spurious-exit branch May 11, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants