Questions tagged [trusted-web-activity]

Trusted Web Activities are a new way to integrate your web-app content such as your PWA with your Android app using a protocol based on Custom Tabs.

200 questions
19
votes
7 answers

Trusted Web Activity - Address bar not hide (Chrome for Android 72)

I've followed this guide to learn how to use a Trusted Web Activity. All fine but the address bar still appear. At begin I think it was because when the app was looking for assetlinks.json the response was 404. Fixed it but no luck on removing the…
Slexom
  • 323
  • 1
  • 5
  • 9
18
votes
1 answer

How to hide 'Running in Chrome' toast on TWA application on Android devices?

Few days ago I released an application meeting TWA requirements in PlayStore. Application behaves like a native app, URL bar is of course hidden. The problem is that application displays native toast 'Running in Chrome' when application is fired for…
Kamil Murawski
  • 231
  • 1
  • 6
16
votes
2 answers

How can I detect if my website is opened inside a Trusted Web Actvity?

I'm opening my page inside a Trusted Web Activity and I want to detect when it's being opened inside it to customize behaviour and for analytics purposes. How can I detect that the page is being opened from the TWA?
andreban
  • 4,621
  • 1
  • 20
  • 49
13
votes
3 answers

How to send data from my TWA webapp to my app?

With Crosswalk I had a very convenient javascript-to-app interface so I could call a java function from javascript and share data from my webapp to my android app. How can I achieve this with Custom Tabs (or Trusted Web Activity) ? There seems to be…
11
votes
2 answers

PWA with TWA: How to force Chrome instead of default browser

I have built a PWA with TWA & generated APK following the official Google guide here - https://developers.google.com/web/updates/2019/02/using-twa What's happening is that when a different browser apart from Chrome is set as default, the behaviour…
10
votes
1 answer

How do I add multiple SHA-256 fingerprints to my assetlinks.json for verifying Android links?

I have my assetlinks set up right now like so: [ { "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.myapp.app", "sha256_cert_fingerprints": [ …
Johnny
  • 698
  • 8
  • 21
8
votes
3 answers

Cannot understand how to open a simple TWA inside an app (using AndroidX)

I am trying to open a TWA inside my app and have researched for 2 days. I've already managed to create a single TWA app, no fuss, just edit the manifest and a few things more. Now I need to have my own app - let's say the app has a splash screen…
Shadow
  • 4,168
  • 5
  • 41
  • 72
7
votes
4 answers

TWA - Digital Asset Link OK but address bar still visible

I developed a Progressive Web App and I want to publish it in the Play Store as a Trusted Web Activity. It's https://www.bagnoadriatico.it Following this guide https://developers.google.com/web/updates/2019/02/using-twa I downloaded the example from…
7
votes
3 answers

How to create Progressive web app apk/any type of file that can be distributed in a enterprise devices

Understandably, PWAs (Progressive Web Apps) are added to home screen after the user visits the web app in a supported browser and clicks on "Add to Home Screen". This works fine for publicly available PWAs. Thinking of Enterprise Android…
6
votes
3 answers

How to use push notification for trusted web activity

I have successfully created an apk for my webesite using TWA with this tutorial. https://developers.google.com/web/updates/2019/02/using-twa But I don't know How should I add push notification for my apk. there are two methods: 1. Web-push 2-android…
6
votes
2 answers

i have followed all the steps of trusted web activity but still address bar is visible using chrome dev..how to get webview in trusted web activity?

This is the screeenshot of our android app but when it opens the address bar is visible as shown how to hide that url(address bar) using trusted web activity? screenshot here we have also used Chrome Dev as our default browser but it is not wroking…
5
votes
0 answers

Trusted Web Activities and Push Notifications Without User Opt-In

I'm currently working on publishing my PWA to Play Store; and stuck with Notifications. My TWA makes use of Firebase Push Notifications for Web - and they work fine. The only issue is that user must opt-in to the notifications when using…
TheBigK
  • 451
  • 5
  • 17
5
votes
1 answer

How to handle analytics on PWA when it is deployed both as an web app and an TWA in Play Store

How should I integrate analytics into a PWA webapp ? if I add analytics from google analytics into webapp and publish it in a server, then later, if I want to publish it on Google Play Store, how should I track the use? here's the scenario: I'm…
5
votes
1 answer

How to open WebView or separate Chrome activity from Custom Tabs

I'm currently building an Android app as a TWA following guidelines from Google's sample TWA project and have stumbled into an issue when trying to open external links from within the TWA. From within my TWA, when opening an external link (such as…
4
votes
2 answers

How to build multi-origin Trusted Web Activity with a wildcard for subdomains

Given a web application with multiple sub-domains. The user is able to navigate from one subdomain to another. The number of subdomains is not fixed (a new subdomain can be created during the user registration). I'm trying to implement TWA with…
1
2 3
13 14