Questions tagged [twa]

A Trusted Web Activity is a way for Android applications to run a full-screen Chrome browser tab to render trusted web content.

What's different about a TWA?

A Trusted Web Activity runs a Chrome browser full screen in an Android app, meaning there is no browser UI visible in the app, including the URL bar. This is a powerful capability so we need to verify that the app and the site belong to the same developer - hence ‘Trusted’. To verify that the app and the site opened in the TWA belong to the same developer, a TWA uses Digital Asset Links to certify ownership. - Introducing a Trusted Web Activity for Android - Chromium Blog

Availability

Trusted Web Activities are available in Chrome on Android, version 72 and above. - Using Trusted Web Activities - Google Developers Updates

Useful links

70 questions
2
votes
1 answer

Can I use adsense in TWA App or do I need to use admob

I have a twa android app. Can I use the same adsense in the website or do I need to change it to admob?
2
votes
2 answers

Open TWA app instead of the web app when user clicks the push notification

Current behaviour: When the user clicks the push notification the web app open, even if the TWA app is installed in the android phone. Expected behaviour: When the user clicks the push notification I want to open the TWA (Trusted web activity)…
2
votes
1 answer

How to implement Play Store Purchases from a Trusted Web Activity?

I'm considering developing an Android App with the bulk of the application being written as a PWA and made available inside the Android app as a Trusted Web Activity (TWA). What I'm not able to find on the Internet (and perhaps I don't know the…
Justin Tamblyn
  • 719
  • 8
  • 21
2
votes
0 answers

Trusted web activity (TWA) in combination with native in app purchase

I'm using a TWA as almost my whole app. The only problem, I want to use the native in app purchase system that google is offering. Everywhere I look there is a sentence that you can use native stuff like push notifications, in app purchase etc. What…
da1lbi3
  • 4,369
  • 6
  • 31
  • 65
2
votes
0 answers

Can we track weburl opened in trusted web activity..?

I am working on an android app that open trusted web activity. but I want to track url which open in TWA for analytic reason. is their any way to track opening URL in trusted web activity? code which i written for TWA is only in the android…
2
votes
2 answers

PWA App - How to avoid push notification permission to user?

I converted my PWA website to an Android App using Trusted Web Activity. But Push Notification is asking permissions to user. How can we avoid this permission dialogue and make it working like a native app, sending notification without any…
Mani
  • 41
  • 3
2
votes
1 answer

TWA URL bar not hiding

we are tring to push in through our PWA to the Android Play store using TWA by using the codes from this github repository https://github.com/GoogleChromeLabs/svgomg-twa. By following the instructions to debug the digital asset links, I get the…
Jialu
  • 114
  • 10
2
votes
1 answer

Can a trusted web activity take part of the screen while the remaining screen shows the activity in background

I have a use case where I want to open a web page in TWA and come back to my app. But, I want to show the page in a TWA and occupy just the bottom part of the screen, while my remaining app is shown in the rest of the screen. Is there a way I can…
kbsbng
  • 2,261
  • 2
  • 18
  • 25
1
vote
1 answer

How can I extend TWA application with In-App review?

i create my TWA app based on this repo: https://github.com/GoogleChromeLabs/svgomg-twa I would like to extend the code with In-App Review https://developer.android.com/guide/playcore/in-app-review Is it possible to do this? I am front-end developer.…
Bajdzis
  • 55
  • 5
1
vote
1 answer

Do TWA's have access to IndexedDB?

I have read conflicting answers on this. On the google site it says that TWAs do not have access to things like local browser storage. However i have read elsewhere that the TWA portion of the app doesnt the the PWA inside of it does have…
1
vote
1 answer

Two way bridge between native android and progressive web apps in trusted web application

As per current understanding from TWA documentation, we can pass message between native android and web using URL intents and query parameters/custom headers. I want to pass information from web to native and return response based on the action to…
1
vote
1 answer

Switch to a different activity from TWA

I've put together a PWA and wanted to convert it into an Android App. I've done so and my Android app consists of Main Activity and TWA that I start from the Main Activity. Is there a way to switch from inside the TWA to some other activity on some…
1
vote
1 answer

404 not found on /.well-known/assetlinks.json

I am getting 404 error when accessing /.well-known/assetlinks.json on my site. It works locally but not when I deploy it to Heroku. I am using Svelte on Sapper with polka server. I tried adding it to the static folder, where all the other static…
fran
  • 326
  • 3
  • 15
1
vote
0 answers

Push Notification in TWA shows an indicator in Chrome Icon instead app icon

I am building a Trusted Web Activity based on a Progressive Web App. Mostly everything works just fine, but the moment a web push notification is received by the device, in the android launcher the chrome app gets an indicator (small dot on the…
user14405155
1
vote
1 answer

How to bind javascript code of TWA to native functions?

I am currently trying to enrich my PWA (Progressive Web App). My PWA is an app which works with jQuery / HTML5 and it works. Now I want to build a trusted web activity (TWA) as I want to go directly to the newest technology (not the WebView from…