I have built an application which establishes a connection with a website using Trusted Web Activity. After redirecting to the website I need to navigate back to the native activity on clicking a button placed on the website. How do I achieve this? Facing trouble as I don't have any control once redirection is done.
Asked
Active
Viewed 996 times
1 Answers
2
TWA is managing all link clicks for you, you can't change it. check out Deep Link and App Link resolutions (doc in here) - make your native Activity
handle some format and under web button put this specific link. TWA will try to resolve link and pass it to your native Activity

snachmsm
- 17,866
- 3
- 32
- 74
-
-
check out this [QA](https://stackoverflow.com/questions/15596860/android-intent-launch-from-browser), especially most voted answer. Never heard of this way of creating `Intent` from web side, but personally I would pick custom `android:scheme` way anyway (just like in accepted answer above) – snachmsm Jul 02 '20 at 06:56