Enable payments on your PWA with Play Billing using Digital Goods API | Session

  Рет қаралды 9,995

Chrome for Developers

Chrome for Developers

Күн бұрын

Пікірлер: 12
@andygeslison6146
@andygeslison6146 3 жыл бұрын
Super excited to try this out! PWAs are just getting better and better. Thanks for sharing!
@andygeslison6146
@andygeslison6146 3 жыл бұрын
Quick question. Is there a way within the PWA code to identify if the user is viewing the app in a regular web browser vs the TWA downloaded app from the play store? It would be great if we identify if the user should be offered a different payment method in the case they're not using the Google Play TWA. Or, is it recommended to upload a different version of my PWA to the Google Play store that only features the Google Play payment API implementation and no backup service?
@ZMYaro
@ZMYaro 2 жыл бұрын
At the moment, window.getDigitalGoodsService('...') will be undefined if it is not in a context where the API can be used. It will also fail to return the requested service if it is not available, at which point you could try a different one or fall back to using the plain PaymentRequest API.
@paulfrischknecht3999
@paulfrischknecht3999 2 жыл бұрын
The now productive Digital Goods API v2.1 does not have an acknowledge, that was only in API v1.0 (now deprecated). It needs to be done in the backend. Purchase Type cannot be indicated in the play developer api (androidpublisher API).
@adambrickley1119
@adambrickley1119 2 жыл бұрын
If you dont want to go straight to a premium version of your pwa google offers no solutions. Admob and adsense are not usable for a pwa.
@ManuMarea
@ManuMarea 2 жыл бұрын
Is it just for Android or for iOs as well?Or can we enable it for Web only ?
@adambrickley1119
@adambrickley1119 2 жыл бұрын
If i set up my PWA with stripe or paypal to protect premium content, then submit to the playstore with bubblewrap, will it get rejected because Google Play billings is not activated? Can you set up Play Billing after the PWA is submitted via bubblewrap?
@davidelias7796
@davidelias7796 2 жыл бұрын
How to install packages in my solution?
@olegchibikov6518
@olegchibikov6518 8 ай бұрын
How can I debug this locally? Is the only way to deloy it and open in TWA on my android phone? It's super inconveneint in terms of development. Is there a way to simulate TWA in localhost?
@AbdulwahabHerbli
@AbdulwahabHerbli 3 жыл бұрын
Awesome! thanks for the great explanation
@Sebastian-sl4hv
@Sebastian-sl4hv 3 жыл бұрын
Thank you! This helps me alot.
What's new for the web platform | Keynote
29:35
Chrome for Developers
Рет қаралды 36 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
7 Web Features You Didn’t Know Existed
10:16
Fireship
Рет қаралды 281 М.
List your Progressive Web App in Google Play | Session
11:58
Chrome for Developers
Рет қаралды 27 М.
5 tips for your PWA | Session
13:58
Chrome for Developers
Рет қаралды 24 М.
5 Secrets to Stop Stuttering & Speak More Clearly!
12:44
Vinh Giang
Рет қаралды 107 М.
Is THIS the Future of Mobile Apps?
9:06
The New Oil
Рет қаралды 7 М.
5 Hidden Windows Features You Should Be Using in 2025!
8:05
Kevin Stratvert
Рет қаралды 128 М.
PWA patterns for window and service worker communication
22:03
Chrome for Developers
Рет қаралды 12 М.
8 AI Tools I Wish I Tried Sooner
16:10
Futurepedia
Рет қаралды 334 М.
The business impact of Core Web Vitals | Session
14:40
Chrome for Developers
Рет қаралды 9 М.