Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading screen missing #3743

Closed
mstidham opened this issue May 17, 2019 · 20 comments
Closed

Loading screen missing #3743

mstidham opened this issue May 17, 2019 · 20 comments
Assignees

Comments

@mstidham
Copy link

Loading screen missing

QA TEMPLATE Input
Device Type: iPhone 7 Plus & Samsung S7
iOS: 12.2
tr Version: 4.11.0
Environment Staging
Codepush:
Internet Connection Type: WiFi
Users affected? Miranda
User handle: @miranda
Bypass handle?: @TestyTester (191-9191)
Location access type? Always
Does this issue occur on other environments?
Time issue occurred (UTC)

Observed Result:

When opening the app on android device I do not see the loading screen. I only have a blank white screen until the HS loads. On ios I see the loading screen for an instant and then see a white blank screen until HS loads.

Expected Result:

User shouldn't see blank white screen, it should display the loading screen.

Steps to reproduce:

  1. Kill the app and reload after user has been logged in.

Related Screenshots/Video Links:


image

@southerneer
Copy link
Contributor

I think this broke after Pavel's recent router tweaks.

@aksonov
Copy link
Contributor

aksonov commented May 27, 2019

@mstidham Could you find out when this bug started to occur? Video would be useful as well.

@southerneer At this moment I can't find relation between removing of extra-stack and intermediate white screen..

As far as I see it could be react native issue - i.e. after iOS launch screen and before react native root view UI:
https://stackoverflow.com/questions/49639287/is-there-a-way-to-avoid-the-white-flash-with-react-native

@aksonov
Copy link
Contributor

aksonov commented May 27, 2019

Found another receipt from facebook:
https://facebook.github.io/react-native/docs/running-on-device.html#pro-tip

The possible reason of white screen is explained there - "As your App Bundle grows in size, you may start to see a white screen flash between your splash screen and the display of your root application view. "

I will try it tomorrow

@mstidham
Copy link
Author

This is probably not needed now but I see this issue on 4.10.0, 4.11.0 & 4.12.0
https://app.box.com/s/ziaxvrp5v02xz02tfuaxdzmipejaa65p

southerneer added a commit that referenced this issue May 28, 2019
Splash screen with react-native-splash-screen (#3743)
@bengtan
Copy link
Contributor

bengtan commented May 29, 2019

The PR that was merged for this ticket may not necessarily fix this ticket, though it should improve it. I guess we'll find out via QA.

@mstidham
Copy link
Author

Version: 4.13.0
It's an improvement but still briefly seeing the blank white screen.
https://app.box.com/s/cjr3mh4t8ncrmorg3zd2hbktd3s2y10n

@southerneer
Copy link
Contributor

Hmm, @aksonov from that video it looks like the launch screen is coming up immediately (good), but for the delay while the app is connecting and setting up the profile it shows a blank screen. Maybe move SplashScreen.hide() to componentDidMount of OnboardingSlideShow and Home? Or maybe there's a cleaner way to do that in Router.tsx?

@aksonov
Copy link
Contributor

aksonov commented May 31, 2019

Oh, it is weird, need to investigate what white screen is shown...

@bengtan
Copy link
Contributor

bengtan commented Jul 26, 2019

@aksonov:

My findings at:

rn-splash-screen triggers background crash #3943
PR #3944

may change what you do in this ticket.

@bengtan
Copy link
Contributor

bengtan commented Jul 29, 2019

Quickly tested this since I did PR #3944 which might have changed things.

I (still) see a brief white white screen on 4.18.2 (both android and iOS).

Interesting, since it occurs after the iOS splash screen (newly introduced by 3944 and which says 'Tinyrobot' and 'Powered by React Native'), that suggests it's happening as part of React Native initialisation. Well, maybe. I'm speculating.

aksonov added a commit that referenced this issue Jul 29, 2019
southerneer added a commit that referenced this issue Jul 30, 2019
hide SplashScreen from Launch (#3743), fix Launch screen (#3951)
@mstidham
Copy link
Author

mstidham commented Aug 1, 2019

Staging Version: 4.19.1
I'm still seeing white screen before the HS loads.

https://app.box.com/s/erhjm2yz20frbsq4d451nwjlc8lu1u9u

@southerneer
Copy link
Contributor

Ok, it sounds like we've regressed back to this problem.

aksonov added a commit that referenced this issue Aug 8, 2019
aksonov added a commit that referenced this issue Aug 12, 2019
@mstidham
Copy link
Author

Codepush StagingBeng

I'm seeing the white screen again on regular account. I had previously verified this via Pavel's codepush on a bypass account but wanted to post results regarding StagingBeng codepush and my regular account.

Regular account (@miranda)
Video: https://app.box.com/s/5oa6x8s5l7ujto307aio53kmy45nff95

Bypass account (@TestyTester)
Video: https://app.box.com/s/0nevu5c42tnh7hnxgbepq4207kwvpuay

@aksonov
Copy link
Contributor

aksonov commented Aug 13, 2019 via email

@mstidham
Copy link
Author

@aksonov I just installed your codepush and I do not see white screen.

@aksonov
Copy link
Contributor

aksonov commented Aug 13, 2019 via email

@mstidham
Copy link
Author

@aksonov see comment on #3915

@aksonov
Copy link
Contributor

aksonov commented Aug 13, 2019 via email

@bengtan
Copy link
Contributor

bengtan commented Aug 14, 2019

@aksonov:

Probably Beng didn’t merge my PR, but include it into changelog

Hmmm ... the codepush I prepared for Miranda is commit d940a25 which does include PR #3986.

I can't explain why apparently #3743 occurs again with my codepush.


Oh, actually, I can.

When I did the codepush, I didn't do yarn install so it's still using the old RNRF (4.1.0-beta.5).

My mistake. Sorry for the false alarm.

@mstidham
Copy link
Author

Verified on Prod Version: 4.20.0 closing ticket.

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

No branches or pull requests

4 participants