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

[Bug]: App loses all history after Android restarts the app? #7390

Closed
1 of 3 tasks
Linksku opened this issue Apr 9, 2024 · 1 comment
Closed
1 of 3 tasks

[Bug]: App loses all history after Android restarts the app? #7390

Linksku opened this issue Apr 9, 2024 · 1 comment
Labels

Comments

@Linksku
Copy link

Linksku commented Apr 9, 2024

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 5.7.4
  @capacitor/core: 5.7.4
  @capacitor/android: 5.7.4
  @capacitor/ios: 5.7.4

Installed Dependencies:

  @capacitor/cli: 5.7.4
  @capacitor/core: 5.7.4
  @capacitor/android: 5.7.4
  @capacitor/ios: 5.7.4

Other API Details

No response

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Android often frees memory from background apps, even on my new Pixel 8. After it frees memory from my Capacitor app, if I go back to the app via the recent apps button, the app no longer has any navigation history, so it shows the homepage. If I press the back button, it closes the app, so there's no other history items.

Expected Behavior

When switching back to some other native apps, they show the previous page I was on. It seems like other apps reloaded, but retained navigation history. E.g. I think Messenger restores navigation history but Instagram doesn't.

Project Reproduction

N/A

Additional Information

I don't have anything that uses a lot of memory.

@Linksku Linksku added the triage label Apr 9, 2024
@jcesarmobile
Copy link
Member

You'll have to save the state/navigation and restore it if it's different from the last one

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants