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

fix: Don't show splashscreen before sending app to background #878

Closed
wants to merge 1 commit into from

Conversation

Ldoppea
Copy link
Member

@Ldoppea Ldoppea commented Jul 20, 2023

When implementing the Lock screen we tried to call the showSplashScreen() method before the app being sent to background

This would prevent the app's content to be briefly displayed when going back to the app in the scenario where the Lock screen would need to be displayed

However due to react-native limitations, the Splashscreen would not have the time to appear before the app is paused

Then it would appear only when the app got the focus again

The main impact is that when no Lock screen is needed, then we get the Splashscreen briefly displayed before seeing the app's content, which gives an impression of slowness

When the Lock screen is needed, then we have the same effect but the Lock screen is displayed fast enough so the Splashscreen is not really needed

By removing the Splashscreen we remove the slowness effect without losing any feature (the Lock screen appears fast enough)

However we may want to revert this the day we find a way to force the Splashscreen BEFORE the app being sent to background

When implementing the Lock screen we tried to call the
`showSplashScreen()` method before the app being sent to background

This would prevent the app's content to be briefly displayed when going
back to the app in the scenario where the Lock screen would need to be
displayed

However due to react-native limitations, the Splashscreen would not
have the time to appear before the app is paused

Then it would appear only when the app got the focus again

The main impact is that when no Lock screen is needed, then we get the
Splashscreen briefly displayed before seeing the app's content, which
gives an impression of slowness

When the Lock screen is needed, then we have the same effect but the
Lock screen is displayed fast enough so the Splashscreen is not really
needed

By removing the Splashscreen we remove the slowness effect without
losing any feature (the Lock screen appears fast enough)

However we may want to revert this the day we find a way to force the
Splashscreen BEFORE the app being sent to background
@Ldoppea Ldoppea force-pushed the fix/remove_splashscreen_before_lock branch from e78ab8f to a849a4a Compare July 20, 2023 13:35
@zatteo
Copy link
Contributor

zatteo commented Jul 20, 2023

Just for information, you need this commit (or equivalent) to fix tests 6006dc2

@Ldoppea
Copy link
Member Author

Ldoppea commented Aug 2, 2023

Closing this PR in favor of: #894

@Ldoppea Ldoppea closed this Aug 2, 2023
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.

2 participants