Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Conversation

@frosty
Copy link
Contributor

@frosty frosty commented Feb 24, 2021

This PR fixes an issue introduced when WordPress for iOS switched to displaying the authenticator as the window's root view controller instead of modally. That change meant that the previous check for isBeingPresentedInAnyWay always returned false, so we didn't track the prologue step.

This PR reverts to the previous method of tracking whether this is the first time the view controller has appeared, using a simple property.

Please test using the associated WPiOS PR: wordpress-mobile/WordPress-iOS#15967

@frosty frosty added the bug Something isn't working label Feb 24, 2021
@frosty frosty marked this pull request as ready for review February 24, 2021 12:07
@emilylaguna emilylaguna self-requested a review February 24, 2021 14:17
Copy link
Contributor

@emilylaguna emilylaguna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working for me 🚀. Started logged in:

  1. Logged out
  2. Got: 🔵 Tracked: unified_login_step <flow: prologue, source: default, step: prologue>
  3. Restarted the app
  4. Got 🔵 Tracked: unified_login_step <flow: prologue, source: default, step: prologue>
  5. Went through the login flow did not see that log again

I also tested the GoogleSignupConfirmationViewController which uses isBeingPresentedInAnyWay and verified it is still working correctly.

@frosty frosty merged commit 531377d into develop Feb 24, 2021
@frosty frosty deleted the fix/prologue-tracking branch February 24, 2021 15:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants