twa

Launching another activity from a Trusted Web Activity (TWA)

ⅰ亾dé卋堺 提交于 2021-02-11 12:42:48
问题 I have problems trying to launch another activity from the TWA via the intent URI. "intent://#Intent;scheme=subscriptionschemetwa;package=com.package.www.twa;end" The package name is unique in reality, of course. I've played around with them, added host, action, extras etc. to URI, but nothing had an effect. As I'm new to native development, I'd appreciate some help. The app itself is not publicly available on Google Play yet (only internally), it's signed and packaged with Bubblewrap, and

Hide div in a Custom Tab opened from a Trusted Web Activity

空扰寡人 提交于 2021-01-29 05:10:34
问题 I have an Android app which uses Trusted Web Activity with an external link. When clicking link it opens in an in-app browser (Custom Tabs). I want hide a div in that Custom Tabs page, but I want to show that div when the site opens in Chrome. Is it possible? The div is like below. <div id="something" class="something"><a class="btn btn-primary" href="somelink">text</a></div> 回答1: Assuming the developer controls both sites involved, if the Trusted Web Activity is opening https://siteA.com and