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

PWA app don't show when we start it from another app with function startActivity and flag FLAG_ACTIVITY_SINGLE_TOP #475

Open
marcinj opened this issue Jul 16, 2024 · 0 comments

Comments

@marcinj
Copy link

marcinj commented Jul 16, 2024

Describe the bug
PWA app don't show when we start it from another app with function startActivity and flag FLAG_ACTIVITY_SINGLE_TOP.
PWA app start, then restart restartInNewTask(), but Android don't show it.

To Reproduce
Steps to reproduce the behavior:

  1. Start pwa app from another app with function startActivity and flag FLAG_ACTIVITY_SINGLE_TOP

Expected behavior
Application show browser when start.

Did this ever used to work
No

Screenshots
None

Code Snippets

Code to run pwa app from another app:

final Intent intent = manager.getLaunchIntentForPackage(packageName);
intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
context.startActivity(intent);

PWA demo app build with generator from:
https://www.pwabuilder.com/reportcard?site=https://webboard.app

Smartphone (please complete the following information):

  • Device: Huawei P20 Lite
  • OS: Android 9
  • Browsers Installed Chrome
  • Browser Versions 126.0.6478.122
  • android-browser-helper library version 2.5.0

Additional context
None

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

1 participant