Trying to integrate DigitalGoodsAPI in PWA app on Playstore. window.getDigitalGoodsService shows as undefined during internal testing of the android app.
So far :
window.getDigitalGoodsService still shows as undefined, tried rebuilding multiple times. What am I missing ?
Finally, I was able to solve this. The issue was Digital Goods API, you need to use DigitalGoodsAPI V2 and you must verify the token. Verify the token here : https://googlechrome.github.io/OriginTrials/check-token.html
in the metatag placement of PWA.
also make sure, token status appears as success : https://prnt.sc/26he938 <-- this was the major clue that helped me solve the problem.
Adios.