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

Refused to load the script because it violates the following Content-Security-Policy

I didn't used google tag manager url in my code but it still shows the ERROR and HERE is the Error. ERROR Refused to load the script 'https://consent.trustarc.com/v2/notice/jznryc' because it violates the following Content Security Policy directive:…
0
votes
1 answer

Why does the Digital Goods API's getService method reject with clientAppUnavailable in my TWA?

We have a TWA/PWA in the Play store. We want to start selling Play subscriptions through our app. We followed the Chrome Developer guides to implementing the necessary steps in the Android project and the PWA. We also checked our code against the…
0
votes
0 answers

Modify thumbprint value in in web.config programmatically in C#

I have a app where I need to change the thumbprint without open the web.config file.
0
votes
0 answers

Mute microphone event sound in twa

i,m using (trust web activity) to loading a web page when user clicked on the microphone icon to recording an bib voice started to playing how i can mute this sound there is the video of bib sound: https://anonfiles.com/O31e36A3y6/11_mp4
0
votes
1 answer

How to detect a Trusted Web Activity (TWA) in Android Apps

I'm working on a script that analyzes the AndroidManifest.xml of decompiled apps and detects if they contain a TWA or not. Is there a better approach for detecting a TWA than analyzing the AndroidManifest? I'm currently checking if the below…
0
votes
1 answer

bubblewrap build fails with out of memory exception

I was trying to build with bubblewrap and I couldn't find an answer anywhere. it says that outofmemory error cli ERROR Command failed: gradlew.bat bundleRelease --stacktrace FAILURE: Build failed with an exception. * What went wrong: unable to…
0
votes
1 answer

service.acknowledge is undefined using Digital Goods API with Google Play in TWA

I have an web app in development to which I am trying to add Google Play Billing on Android and Chrome OS. My implementation is basically the same as in Google's own documentation, however it fails at the point of acknowledging the purchase after…
0
votes
1 answer

How I can publish Next js app on google playstore with TWA

I have created an app successfully and applied PWA.App-based on MERN Stack + Next js. How to convert PWA To TWA? I want to show this app on the google play store.
Jaydeee
  • 37
  • 2
  • 8
0
votes
1 answer

TWA app generated using the bubblewrap opens in browser instead of as an app

Creating a PWA to publish on google play store. The apk generated using the bubblewrap cli is installing fine, but opens like a regular website in google app rather than a standalone app. It has a url bar at the top. Please refer to the…
0
votes
1 answer

getDigitalGoodsService("https://play.google.com/billing") always returning “DOMException: unsupported context” error

I have a working TWA on Play Store (website reference) that I’m trying to update for enabling it to handle google play digital goods payments. I’ve already implemented an in-app purchase using stripe. When I submitted a simple update to the app…
0
votes
0 answers

PWA on android shrinks viewport then gets stuck after keyboard is closed

I Have a PWA (also TWA) that is used as full screen to get the most space out of the device (used in landscape), I can't 100% reproduce the bug, but sometimes when i press the inputs and keyboard shows up, whenever i close the keyboard, the viewport…
0
votes
1 answer

Is there a way to stop saving any data or history in TWA?

I'm implementing Trusted Web Activities in my Android project, and as I understand it keeps data synchronised with Chrome. Is there a way to make data used inside the app private and not saved -like form fields and history- ?
0
votes
1 answer

Trusted Web Activity [TWA] - Can it read AccountManager accounts on Android?

Problem: Attempting to read accounts created via AccountManager API in Android via a TWA LauncerActivity. I'm aware that some native functionality isn't possible in Android, and if I am attempting something that is impossible please link me a…
Thomas
  • 550
  • 5
  • 17
0
votes
1 answer

Cookies not working with Trusted Web Activity (TWA)

My twa works correctly but cookies not working. I have created a remember me login, if I use the browser or pwa works fine and cookies are created. Is it possible that twa does not work with cookies? I have seen other twa's working with remember me…
0
votes
1 answer

Can a PWA published as an Android app (using bubblewrap) track geolocation when phone screen is closed?

I'm creating a TWA using bubblewrap out of my PWA. While the app is open, we need to track the users location to notify them when they're near the destination. Can a PWA wrapped as a TWA, downloaded from Google Play, can still run when the phone…