我正在我的产品中开发 Android 应用内结算。我想问你关于如何获取我已通过 Google Play 控制台注册的所有产品.
这是来自 Google Play 的示例代码。
List additionalSkuList = new List();
additionalSkuList.add(SKU_APPLE);
additionalSkuList.add(SKU_BANANA);
mHelper.queryInventoryAsync(true, additionalSkuList, mQueryFinishedListener);
但如果我把additionalSkuList什么都没有,它什么也不会返回。
我想知道我在 Google Play 控制台的应用内商品中注册的所有产品,以便提前使用产品信息进行观看。
有人有同样的问题吗?有人知道解决方法吗?
现在可以使用 Google Play Developer API(又名:Google Play Developer API)来实现这一点。android-publisher
):
https://developers.google.com/android-publisher/ https://developers.google.com/android-publisher/
特别是,应用内产品:列表 https://developers.google.com/android-publisher/api-ref/inappproducts/list API:
列出 Android 应用程序的所有应用内产品,包括订阅和托管应用内产品。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)