GoogleChrome / GoogleChrome/android-browser-helper
PWA app don't show when we start it from another app with function startActivity and flag FLAG_ACTIVITY_SINGLE_TOP
- Dominant language
- Java
- Stars
- 832
- Forks
- 370
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.