简体   繁体   English

android getSubscriptions 为我的 ID 提供了空数组,但可以使用此“android.test.purchased”测试 ID react-native-iap

[英]android getSubscriptions given empty array for my ids but work with this "android.test.purchased'" test id react-native-iap

Version of react-native-iap react-native-iap 的版本

4.3.0 4.3.0

Version of react-native react-native 的版本

0.63.3 0.63.3

Platforms you faced the error (IOS or Android or both?)您遇到错误的平台(IOS 或 Android 或两者?)

Android安卓

Expected behavior预期行为

should give an array of my subscription that I added on my google console.应该提供我在 Google 控制台上添加的订阅数组。

Actual behavior实际行为

gives an empty array给出一个空数组

Tested environment (Emulator? Real Device?)测试环境(模拟器?真实设备?)

"android.test.purchased" working both on the emulator and real device but my ids are not working empty array always “android.test.purchased”在模拟器和真实设备上都可以工作,但我的 id 总是不能工作空数组

Steps to reproduce the behavior重现行为的步骤

在此处输入图片说明

Please help me out with this it's working fine for iOS.请帮我解决这个问题,它适用于 iOS。 Even I put my app on alpha and testing reviews are also done.即使我把我的应用程序放在 alpha 上,测试评论也完成了。

Q2. Q2。 One more question I need to know is it mandatory to verify the receipts from the backend what if I leave this step?我需要知道的另一个问题是必须验证后端的收据,如果我离开这一步怎么办?

I get my subscription in an array finally it's not empty.我在一个数组中得到了我的订阅,最后它不是空的。 Ok so to get the subscription/products you must have to release your app on Open Testing / Closed Testing / Internal Testing .好的,要获得订阅/产品,您必须在Open Testing / Closed Testing / Internal Testing上发布您的应用程序。 once you are able to see your app on the play store as a beta available for testing then you are able to get the subscription or products in the array.一旦您能够在 Play 商店中看到您的应用程序作为可用于测试的 Beta 版,那么您就可以在阵列中获得订阅或产品。 Hope this will be helpful for anyone who faces this issue afterwards Cheers!希望这对以后遇到这个问题的人有所帮助干杯!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 react-native-iap - getSubscriptions 返回空数组 - react-native-iap - getSubscriptions returns empty array 重置android.test.purchased时出错 - Error Resetting android.test.purchased 应用内结算测试:android.test.purchased 已经拥有 - In-App Billing test: android.test.purchased already owned android.test.purchased项目的Android应用内结算错误 - Android in-app billing error with android.test.purchased item IAB consumePurchase()不再适用于静态响应android.test.purchased - IAB consumePurchase() no longer works for static response android.test.purchased 在android.test.purchased中购买物品后如何获得响应 - How to get Response after purchase item in android.test.purchased Android帐单-使用Production / alpha / beta中购买的android.test.purchase测试购买 - Android billing - Testing purchases with android.test.purchased in production/alpha/beta Android应用内结算:使用sku android.test.purchased时出错(响应:5:开发人员错误) - Android in-app billing: Error consuming sku android.test.purchased (response: 5:Developer Error) Android BillingClient 错误:“启动计费流程时出现异常:;对于 sku:android.test.purchased;尝试重新连接” - Android BillingClient Error: "Exception while launching billing flow: ; for sku: android.test.purchased; try to reconnect" Google Play结算 - sku android.test.purchased的签名验证失败 - Google Play Billing - signature verification failed for sku android.test.purchased
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM