android - 如何在 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 无法找到产品。
解决方案
问题来自调试 buildType 中的 applicationIdSuffix。
推荐阅读
- django - drf 不创建没有配置文件密钥的配置文件
- css - Chrome 88 中的 Angular Material 对话框意外滚动条
- azure - 用于创建快照并将其存储到另一个位置的存储帐户的 Powershell 脚本
- php - 我如何隐藏基于用户角色或权限 PHP 的表单
- mysql - 如果值小于或大于“limit_exceded”列中的值,我如何获得limit_exceded值我会在mysql中得到1 else 0
- python-3.x - 熊猫比较来自不同数据框的两列并创建新列
- sql-server - 在 Always on 中的两个副本之间传输登录信息
- flutter - 从 Flutter App 从 Microsoft AAD 检索对象 ID
- java - Mockito:真实方法调用后如何调用自定义方法?
- python - 将数字分配给字符串时,Pydantic 不验证