GoogleChromeLabs / bubblewrap

Bubblewrap is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWAs) using a Trusted Web Activity.
Apache License 2.0
2.29k stars 152 forks source link

Digital Goods API not working? #854

Closed vflam closed 1 week ago

vflam commented 1 month ago

Hello, I made a TWA of my PWA using bubblewrap, using these options in the twa-manifest.json

"features": { "playBilling": { "enabled": true } }, "alphaDependencies": { "enabled": true },

However, "getDigitalGoodsService" is never available, I am out of ideas. All the documentation I find is from 2022, it says there is an origin trials but it seems like the origin trials is over now, but the digital goods API just won't work. Was this scrapped and it's now impossible to use Play Billing with a bubblewrapped app? Or, is there anything that I am missing?

Stevie-Ray commented 2 weeks ago

Hi @vflam I can confirm it's working, still receiving payments on my app. The API is only available on mobile devices: chrome://inspect/#devices

vflam commented 1 week ago

Thank you, I managed to get it to work.

The problem was that the default browser on my phone was Brave browser and not Chrome, so the TWA would be started using Brave and it does not work in Brave.