GoogleChrome / GoogleChrome/android-browser-helper

Add ability to open apps and browsers from TWA

Open
#340 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
832
Forks
370
Avg merge
1d 3h
Merged PRs (30d)
6

Description

**Is your feature request related to a problem? Please describe.**
Currently, all links open within TWA and `intent://` links don't work.

**Describe the solution you'd like**
Ability to through user outside TWA for all non-app related links. It would be awesome if there would be an option to let user select where they want to open a link, just like in a native app. Opening maps in a selected map application, social media link in an app I want, etc.

**Additional context**
It is possible to open links outside PWA from browsers and WebView. WebView even has a method `shouldOverrideUrlLoading` that lets developer decide how links should behave. CustomTabs doesn't seem to offer anything. An exception could be [execCommand](https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsClient?hl=en#extraCommand(java.lang.String,%20android.os.Bundle)), but I am not an Android/Java developer, so don't understand what to do with it.

If there is at least some way to achieve this behaviour, please share it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.