fix(iOS): Send the login message within the visibilitychange
#4682
Conversation
login message within the visibilitychangelogin message within the visibilitychange
d42b31d
to
8635bda
For verified accounts, the `login` message is sent immediately. For unverified accounts, the `login` message is sent after the first of 1) a 5 second timeout, or 2) a `blur` DOM event. The `blur` DOM event is to handle the case where a user receives their verification email and opens the email client before the timeout has occurred. issue #4377
8635bda
to
bf709a5
login message within the visibilitychangelogin in more cases to Fx for iOS.
login in more cases to Fx for iOS.login in more cases to Fx for iOS.
login in more cases to Fx for iOS.login message within the visibilitychange
login message within the visibilitychangelogin message within the visibilitychange
|
This code is running on https://stomlinson.dev.lcip.org. I used the config from https://gist.github.com/shane-tomlinson/ac0e30442ebd9f32b13b449239319f60 to test on device. Unfortunately, my device doesn't have @st3fan's patch, so I haven't tested in full. |
|
fixes #4377 |
|
@shane-tomlinson On it |
|
Tested this with the following use cases FxiOS 6.0
FxiOS 6.1 (iOS Patch version)
@shane-tomlinson This LGTM, r+. Something to note with the patched iOS version, after returning to the app from verifying email, the screen will still be on the confirm sign-in page even though they just verified, which could lead to come confusion. |
Agh! That's not supposed to happen! It's supposed to redirect to |
Fx for iOS allows the user to see the "confirm your email" screen, but never takes it away after the user verifies. Allow the poll so that the user sees the "Signup complete!" screen after they verify their email.
8319301
to
3135438
|
@shane-tomlinson Updates look r+! This performs exactly as we talked about. FxiOS 6.1 >=
Merge at will! |
For verified accounts, the
loginmessage is sent immediately.For unverified accounts, the
loginmessage is sent after thefirst of 1) a 5 second timeout, or 2) a
blurDOM event.The
blurDOM event is to handle the case where a user receivestheir verification email and opens the email client before the timeout
has occurred.
For Fx for iOS >= 6.1, always send the
loginmessage immediately.fixes #4377