You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] LaunchMode.SingleTask in MainActivity causes blank UI on relaunch (Uno 5.4 regression) #18325
kind/bugSomething isn't workingkind/regressionSomething was working, now it isn'tplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/navigation-lifecycle 🧬Categorizes an issue or PR as relevant to the navigation and lifecycle (NavigationView, AppBar, ...)
Starting with 5.4.x, when MainActivity is set to LaunchMode.SingleTask, the app shows a blank UI if it is running persistently in the background (i.e. because it is receiving background location updates) and it is closed/swiped away and then relaunched:
Screen_Recording_20240927_134515_Volt.mp4
Expected behavior
Same as version <= 5.3.x - app UI should restore to its previous state and show properly again after relaunch:
Screen_Recording_20240927_133913_Volt.mp4
How to reproduce it (as minimally and precisely as possible)
Then run something that will keep the activity alive like a background service or background location updates, swipe away the app, then click the icon to launch it again and reactivate the activity and notice you get a blank screen.
Repro project would require large amounts of actual app code that contains all the permission request logic/UI, background location update service, etc...so if you want that then I will need to send the code privately as I can't share it publicly.
changed the title [-][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (starting with Uno 5.4)[/-][+][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (Uno 5.4 regression)[/+]on Sep 28, 2024
changed the title [-][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (Uno 5.4 regression)[/-][+][Android] LaunchMode.SingleTask in MainActivity causes blank UI relaunch (Uno 5.4 regression)[/+]on Sep 29, 2024
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.
kind/bugSomething isn't workingkind/regressionSomething was working, now it isn'tplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/navigation-lifecycle 🧬Categorizes an issue or PR as relevant to the navigation and lifecycle (NavigationView, AppBar, ...)
Activity
[-][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (starting with Uno 5.4)[/-][+][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (Uno 5.4 regression)[/+][-][Android] LaunchMode.SingleTask in MainActivity causes app to hang on relaunch (Uno 5.4 regression)[/-][+][Android] LaunchMode.SingleTask in MainActivity causes blank UI relaunch (Uno 5.4 regression)[/+][-][Android] LaunchMode.SingleTask in MainActivity causes blank UI relaunch (Uno 5.4 regression)[/-][+][Android] LaunchMode.SingleTask in MainActivity causes blank UI on relaunch (Uno 5.4 regression)[/+]agneszitte commentedon Oct 4, 2024
@jeromelaban, @MartinZikmund is additional QA needed for this issue?
jeromelaban commentedon Oct 5, 2024
Yes, this is needed.
MartinZikmund commentedon Oct 7, 2024
Created a manual test sample in the Samples app under Windowing category
agneszitte commentedon Jan 15, 2025
@jhanvi03, @Darsh0307 if you can test this with latest stable version, please
github-actions commentedon May 7, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.