首页 > 解决方案 > 如何在 React Native 上使用 Qonversion 或 IAP HUB 成功进行应用内购买?

问题描述

我在实施 IAP 时遇到了很大的困难。

在应用程序中初始化 SDK 后尝试购买时,我从 Qonversion 收到以下错误:
[Error: Failure to retrieve SkuDetails for the in-app product ID]

尝试使用 IAP-HUB 时,出现以下错误:
GooglePlay did not return the product 'monthly', the product has been filtered, if the sku is valid your GooglePlay account or sandbox environment is probably not configured properly (https://iaphub.com/docs/set-up-android/configure-sandbox-testing)

我按照提到的教程没有成功。我肯定错过了一点,但找不到在哪里。

这些产品在 Google Play 上存在并且是活跃的。我一无所知,几天以来我一直在努力敲定这一点。

我正在真实设备上进行测试,我在封闭轨道上上传了一个捆绑包并获得了 Google 的批准。但是那个包没有BILLING权限所以我上传了一个新的,也许它会解决我的问题?

编辑:问题来自调试 buildType 中的 applicationIdSuffix,因此,Qonversion 和 IAP 无法找到产品。

标签: androidreact-nativein-app-purchase

解决方案


问题来自调试 buildType 中的 applicationIdSuffix。


推荐阅读