Trusted Web Activity: Navigating back to the native activity from redirected URL

Viewed 622

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.

1 Answers

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

Related