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

SplashScreen Animation: Add fail to launch mitigation #5690

Open
wants to merge 3 commits into
base: revert-5666-feature/mike/splashscreen-animation/revert-splashscreen-animation
Choose a base branch
from

Conversation

mikescamell
Copy link
Contributor

@mikescamell mikescamell commented Feb 25, 2025

Task/Issue URL: https://app.asana.com/0/1207908166761516/1209495201524764

Description

Added a fallback mechanism to handle cases where the splash screen exit animation fails to trigger. The fallback automatically proceeds to the next screen after a 1.5-second delay if the normal exit animation doesn't occur.

We now also only target Android 13 and above with the Splashscreen animation after seeing mention of issues on Android 12L.

Steps to test this PR

Android 12L testing fallback

  • We can actually rely on the Android Studio launch bug to test this
  • Create an emulator with API 32 (get one with the play store)
  • Run the branch from the Android Studio
  • The app should not show the splashscreen (remember we're using the bug
  • After ~1.5 seconds the app should launch into onboarding/browser

Android 12L testing normal launch

  • Close the app from before
  • Locate the app on the home screen/app launcher
  • Launch the app
  • The static logo splashscreen should show
  • The app should launch into onboarding/browser

Test other OS versions

Test that the splashscreen still works on other Android OS versions. A suggested range could be 26, 30, 33, 35

On 33+

  • Open the app
  • Animated splashscreen should play
  • The app should launch into onboarding/browser

On <= 32

  • Open the app
  • Static splashscreen logo should be visible
  • The app should launch into onboarding/browser

UI changes

No visual changes to the splash screen appearance or animation.

Demo

Emulator Android 12L Simulating fallback

Screen_recording_20250225_155714.mp4

Emulator Android 12L back to static logo

Screen_recording_20250225_155802.mp4

Device Pixel 6a Android 12L (32)

Screen_recording_20250226_103258.mp4

Device Fujitsu F-01L Android 8.1 (27)

Screen_recording_20250226_104210.mp4

Device Samsung Galaxy Note 9 Android 10 (29)

Screen_recording_20250226_105113.mp4

Device Motorola G20 Android 11 (30)

Screen_recording_20250226_105911.mp4

Device Samsung Galaxy A51 Android 12 (31)

Screen_recording_20250226_110610.mp4

Device Oppo CPH2557 Android 14 (34)

Screen.Recording.2025-02-26.at.12.02.34.mov

Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@mikescamell mikescamell force-pushed the feature/mike/splashscreen-animation/add-fail-to-launch-mitigation branch 2 times, most recently from 0590335 to 1b46cc2 Compare February 25, 2025 14:42
- Added a job to send a pixel and determine the view to show after a delay if the splash screen animation fails to exit.
- Added the ability to cancel the aforementioned job.
- Launched the job in `LaunchBridgeActivity`.
- Cancelled the job when the splash screen exit animation listener is triggered.
@mikescamell mikescamell force-pushed the feature/mike/splashscreen-animation/add-fail-to-launch-mitigation branch from 1b46cc2 to b215c81 Compare February 25, 2025 14:53
@mikescamell mikescamell marked this pull request as ready for review February 26, 2025 09:19
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.

1 participant