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

[Android] App has a black screen after being left in background #145289

Closed
zambetpentru opened this issue Mar 17, 2024 · 3 comments
Closed

[Android] App has a black screen after being left in background #145289

zambetpentru opened this issue Mar 17, 2024 · 3 comments
Labels
r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@zambetpentru
Copy link

zambetpentru commented Mar 17, 2024

Steps to reproduce

It appears you need Android 14 (e.g Samsung S22 Ultra), can not appear to repeat on Android 12. Haven't checked recently but probably okay on Android 13 as well... Have never seen on issue on iOS.

Have been able to repeat it with our Apps on stable 3.19.3 (and prior versions in 3.x) and the latest Google Earth and Wonderous apps.

  1. Open your Flutter App
  2. Change to another app or two
  3. Turn off screen
  4. Leave for 5 minutes
  5. Turn on screen and try to select the App

Expected results

App should show as normal and not as a Black screen. When you select the App twice it will open.

Actual results

Screen is blank, until I select the App twice. Also can see flicker sometimes when looking at the list of open Apps.

Code sample

This should be a simple repo: #143992

Screenshots or Video

Screenshots / Video demonstration

This is Google Earth, Wonderous and one our Flutter Apps all showing the Black screen
telegram-cloud-photo-size-4-6032671559308656465-y

telegram-cloud-photo-size-4-6032671559308656466-y

telegram-cloud-photo-size-4-6032671559308656467-y

This is what I get when I select the App
telegram-cloud-photo-size-4-6032671559308656468-y

telegram-cloud-photo-size-4-6032671559308656469-y

Logs

No response

Flutter Doctor output

Doctor output
[!] Flutter (Channel stable, 3.19.3, on macOS 14.3.1 23D60 darwin-arm64, locale en-GB)
    • Flutter version 3.19.3 on channel stable at /users/omega/flutter
    ! Warning: `flutter` on your path resolves to /Users/omega/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /users/omega/flutter. Consider adding
      /users/omega/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/omega/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /users/omega/flutter. Consider adding
      /users/omega/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ba39319843 (2 days ago), 2024-03-07 15:22:21 -0600
    • Engine revision 2e4ba9c6fb
    • Dart version 3.3.1
    • DevTools version 2.31.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/omega/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.87.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • iPad Pro (11-inch) (4th generation) (mobile) • F970649B-BBDA-4185-96C3-7274D42ED07D • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)                              • macos                                • darwin-arm64   • macOS 14.3.1 23D60 darwin-arm64
    • Chrome (web)                                 • chrome                               • web-javascript • Google Chrome 122.0.6261.112

[✓] Network resources
    • All expected network resources are available.
@huycozy huycozy added the in triage Presently being triaged by the triage team label Mar 18, 2024
@huycozy
Copy link
Member

huycozy commented Mar 18, 2024

Thanks for the report, @zambetpentru. I think you are hitting #139630 which pointed out the issue also occurs on Samsung device and Android 14.

I will close this issue in favor of that one. So please follow up on it for updates.

@huycozy huycozy closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@huycozy huycozy added r: duplicate Issue is closed as a duplicate of an existing issue and removed in triage Presently being triaged by the triage team labels Mar 18, 2024
@zambetpentru
Copy link
Author

Looks like it thanks!

Copy link

github-actions bot commented Apr 1, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

2 participants