Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Entering Android Multi-Window mode restarts app #2582

Closed
1 of 4 tasks
Proper-Job opened this issue Mar 16, 2020 · 2 comments
Closed
1 of 4 tasks

Entering Android Multi-Window mode restarts app #2582

Proper-Job opened this issue Mar 16, 2020 · 2 comments

Comments

@Proper-Job
Copy link

Proper-Job commented Mar 16, 2020

Capacitor Version

@capacitor/cli 1.5.0
@capacitor/core 1.5.1
@capacitor/ios 1.5.1
@capacitor/android 1.5.1

Affected Platform(s)

  • Android
  • iOS
  • Electron
  • Web

Current Behavior

Entering multi-window mode on Android restarts the app. The splash screen shows and the last place in the app (navigation) is lost.

Expected Behavior

The splash screen is not shown and the app retains the current navigation state.

Sample Code or Sample Application Repo

Can be reproduced with starter template: ionic start multiWindowTest tabs --capacitor

Reproduction Steps

Create a starter template:

ionic start multiWindowTest tabs --capacitor

Add capacitor Android project:

cap add android

Open and launch Android Project with Android Studio.
Navigate to tab 3
Enter multi-window mode.
Watch the app restart and launch tab 1

Other Technical Details

Tested on Android API Level 25 and 29

@jcesarmobile
Copy link
Member

I've sent a PR that add the required changes to the app template, but you'll have to apply it to your own apps, the changes will only apply to new apps after it's released.

see #2584

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 12, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 12, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants