Тёмный

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

Chrome for Developers
Подписаться 763 тыс.
Просмотров 10 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 Год назад
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 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?
@ManuMarea
@ManuMarea Год назад
Is it just for Android or for iOs as well?Or can we enable it for Web only ?
@AbdulwahabHerbli
@AbdulwahabHerbli 3 года назад
Awesome! thanks for the great explanation
@olegchibikov6518
@olegchibikov6518 5 месяцев назад
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?
@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.
@Sebastian-sl4hv
@Sebastian-sl4hv 3 года назад
Thank you! This helps me alot.
@davidelias7796
@davidelias7796 Год назад
How to install packages in my solution?
Далее
5 tips for your PWA | Session
13:58
Просмотров 24 тыс.
List your Progressive Web App in Google Play | Session
11:58
The business impact of Core Web Vitals | Session
14:40
Think Fast, Talk Smart: Communication Techniques
58:20
7 Computing Urban Myths
18:21
Просмотров 78 тыс.
What's new in Web Vitals | Session
14:44
Просмотров 11 тыс.
Difference between cookies, session and tokens
11:53
Просмотров 645 тыс.
7 Web Features You Didn’t Know Existed
10:16
Просмотров 278 тыс.
An Illustrated Guide to OAuth and OpenID Connect
16:36
Просмотров 604 тыс.