Skip to content

Android "back" quits the app completely #638

@gnprice

Description

@gnprice

Repro steps:

  • On Android, launch the app. Wait for data to load.
  • Swipe back several times, until you're back at the system home screen.
  • Launch the app again.
  • Actual: The app has to load the data again from scratch.
  • Expected: The app was still running in the background, so that the data is all ready.

This is an upstream Flutter issue:

The expected behavior is new in Android 12 (so in 2021); before that, our actual behavior was expected. See Android docs:
https://developer.android.com/about/versions/12/behavior-changes-all#back-press

I don't think there's a particularly straightforward workaround for us within the app, but hopefully it'll get fixed upstream. (So filing this issue mainly to track that this is a known issue and what the root cause is, in case people notice it again in the future.) Here's my summary of the state of the issue: flutter/flutter#117061 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-AndroidIssues specific to Android, or requiring Android-specific worka-homeThe home screens of the app; finding and starting conversationsbeta feedbackThings beta users have specifically asked forupstreamWould benefit from work in Flutter or another upstream

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions