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

Chrome or samsung browser not find or not detected as custom tab compatible #468

Open
cds-nl opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@cds-nl
Copy link

cds-nl commented Apr 24, 2024

Describe the bug
Users are experiencing issues with our twa app.
Device that are using chrome cannot open chrome.
The issue:
It seems that the package manager is unable to get the installed browser on the phone.
Sometimes it returns that chrome browser is installed but it fails to detected it as a custom tab compatible browser.
It is not a consistent bug. Most of the user are able to use the app for some times and suddenly the app is unable to find the browsers.
Uninstalling the app does not fix the issue.
A clone app (by changing the appID) will work even if the original one is not.

Expected behavior
Browser & custom tab browser should be find

Did this ever used to work
Use to have incompatibility with some phones, but the issue start to increase a lot mostly on samsung phones

Code Snippets
Class: Token.class : PackageIdentityUtils.getFingerprintsForPackage(packageName, packageManager);
Class from lib, does not find any app even if installed on the phone.


"pm.queryIntentActivities(queryBrowsersIntent, PackageManager.MATCH_DEFAULT_ONLY);" returns nothing

There is no way to reproduce it, it's completely random. A working device can suddenly stop working.

Smartphone (please complete the following information):

  • Device: Mostly samsung
  • OS: all but 13 & 14 are most represented
  • Browsers Installed: chrome, or samsung browser
  • Browser Versions: chrome 123 or samsung browser 24
  • android-browser-helper: 2.3.0
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