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
4
votes
1 answer

Creating native Android push notifications for App built with PWA builder

Successfully created an Android app of my PWA using PWA builder. Also Added web push notifications with the Service worker and web Firebase messaging API. But due to certain shortcomings of web push notifications, I want to use the native push…
UpaJah
  • 6,954
  • 4
  • 24
  • 30
4
votes
1 answer

Run TWA without a browser installed

I recently replaced Cordova app in google play to work with TWA. After that, I start to get many complaints that the app stopped working on many phones. After speaking with many clients I discovered the problem. In Israel, many religious people…
4
votes
1 answer

How can I get my Android app to always open in Chrome or another browser that supports TWA?

I have a very basic Android app generated from https://appmaker.xyz/pwa-to-apk/. That app was actually modeled very closely off an example published by Google which I cannot find anymore. The problem is that if you set the default browser on the…
Bee
  • 41
  • 3
4
votes
1 answer

How to implement in-app purchase to disable ads in TWA

I would like to add advertisements (Interstitial from admob) to my trusted-web-activity and the possibility to disable ads by buying an in-app 'Remove ads' product. The ad-screen should for example be opened each time a user wants to add a new…
4
votes
1 answer

Google Sign In doesn't work with Trusted Web Activity (TWA) release apk but works in debug apk

I am using Trusted Web Activities(TWA) for the Android app. My app uses Google Sign In for Authentication (Firebase). In debug mode, it works as it should. But when I install the release apk and try to Sign In, authentication fails and the app…
4
votes
1 answer

How do I return the user to my TWA when pressing on a media notification?

I'm building an Android app that wraps my Progressive Web App as a Trusted Web Activity. (I'm following guidelines from Google's sample project.) When the user plays audio in the app, a media notification appears on the device. I'm using the web…
3
votes
1 answer

Is it possible for a trusted web activity to have a configurable start url?

I have a situation where my web application is not on the world wide web. Rather, there are deployments to multiple customer's private environments. My customers would like an Android app that wraps this web application. It looks to me that the…
Ogre
  • 781
  • 3
  • 10
  • 30
3
votes
1 answer

Trusted Web Activity: Not able to remove URL header

I am exploring the Trusted Web Activity concepts and trying to launch it like this - final CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); final CustomTabsIntent customTabsIntent = builder.build(); …
3
votes
0 answers

TWA autocloses on firing chrome intent

What I want is to CustomTWAActivity to not close and keep on running. I have a MainActivity that starts a TWA (Trusted Web Activity based on CCT protocol). I have extended the TWA Launcher with a Custom Class so that I can override its onNewIntent…
3
votes
1 answer

Is 80 a strict Lighthouse scores for publishing TWA apps?

While learning about TWAs, most of the google tutorials have given example of oyorooms.com for its OyoLite app in Playstore, Myntra.com ( Myntra lite ), NavbharathTimes However, when I measured these sites on https://web.dev/measure/ or…
prem911
  • 266
  • 3
  • 16
3
votes
0 answers

FCM push notifications on mutliple TWA on same domain

I am working on a use case where I am trying to create multiple TWAs which run on same domain but with different routes. Like this TWA-1: www.example.com/pwa1 TWA-2: www.example.com/pwa2 TWA-3: www.example.com/pwa3 I have gone through this…
3
votes
1 answer

How to make Android app using TWA full screen (immersive)

We make an Android app that currenlty uses WebView to show web content full screen. This works but the performance depends strongly on the version of the WebVeiw component and that is not always updated when the Chrome browser is updated (there is a…
Bob Groeneveld
  • 903
  • 1
  • 9
  • 19
3
votes
1 answer

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

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?…
3
votes
1 answer

Using postMessage in a Chrome Custom Tabs CustomTabsSession

I'm getting to grips with the functionality available in Chrome Custom Tabs and I'm curious to know how I might go about communicating between the Custom Tab and the app itself. I can see in CustomTabsSession that there are methods like…
Alastair
  • 5,894
  • 7
  • 34
  • 61
3
votes
1 answer

In Trusted Web Activity the address bar not hiding

After following the Using Trusted Web Activities page about TWA's and hiding the URL bar I have followed all the instructions to hide the URL bar, but surprisingly it's not hidden. How can I solve this? This is my assetlinks.json file : [{ …
1
2
3
13 14