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

Cannot open multiple TWA application instances #469

Open
lowkahonn opened this issue Apr 26, 2024 · 1 comment
Open

Cannot open multiple TWA application instances #469

lowkahonn opened this issue Apr 26, 2024 · 1 comment

Comments

@lowkahonn
Copy link

Describe the bug
When trying to open more than one application instances, a prompt with " is already running" is shown, and the new instance is killed and bring the existing instance into focus instead.

To Reproduce
Steps to reproduce the behavior:

  1. Open a TWA application in one split screen
  2. Open the same TWA application in another split screen
  3. The second instance does not open, and we see the toast " is already running"

Expected behavior
TWA applications can be opened in split screen as expected

Did this ever used to work
Does not seem so

Screenshots
None

Code Snippets
Just by using the LauncherActivity class.

Smartphone (please complete the following information):

  • Device: Samsung Galaxy Tab S9 Ultra
  • OS: Android 13
  • Browsers Installed: Chrome
  • Browser Versions: 124.0.6367.82
  • android-browser-helper library version: 2.5.0

Additional context
It seems like the behavior is defined here, where it'd bring an existing instance to focus and does not allow more than one instances to be opened. Not sure if there are any reasons doing so, but it'd be great if we can support opening multiple application instances in split screens to unlock more use cases.

@andreban
Copy link
Member

CC @SayedElabady

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants