[英]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.