试图在Playstore上的PWA应用程序中集成DigitalGoodsAPI。window.getDigitalGoodsService在安卓应用程序的内部测试中显示为未定义。
迄今为止:
Bubblewrap
G 213
window.getDigitalGoodsService仍然显示为未定义的,多次尝试重建。我错过了什么?
发布于 2022-01-22 10:37:01
最后,我解决了这个问题。问题是数字商品API,您需要使用DigitalGoodsAPI V2,您必须验证令牌。在这里验证令牌:https://googlechrome.github.io/OriginTrials/check-token.html
在PWA的metatag定位中。
还要确保令牌状态显示为成功:https://prnt.sc/26he938 <--这是帮助我解决问题的主要线索。
再见了。
https://stackoverflow.com/questions/70452559
复制相似问题