New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getProducts returns empty array in v.2.4.8 in iOS 12.x + #541
Comments
Related #407. <== Could you follow the related issue and come back? |
@hyochan Right, my Paid Apps agreements was not active but pending .. Closing :) |
I am facing the same issue, getting an empty array from the getProducts() method. react-native-iap - 2.4.8 & react native version - 0.56.0. It is working properly on native iOS with the same id. How to resolve it? |
i strongly suggest you to check out link . i mean controll your build phaese->link binary with libraries (i was not able to see libRNAap.a even i did react-native link react-native-iap) then i linked manually and its working now. |
Thanks @srhtylmz19 fixed it for me! |
I solved it! I am using these versions,
just do it like this
|
I had this issue and it turns out I'd skipped installing the RNIap in the pod file |
I thought about it for a long time, then I checked the purchase status in appstoreconnect, it was "Metadata missing". As soon as it filled in all the data (including information for verification), the purchase moved to the "Ready to ship" status and the getProducts method stopped returning [] |
Version of react-native-iap
2.4.8
Version of react-native
0.55.4
Platforms you faced the error (IOS or Android or both?)
iOS 12.x +
Expected behavior
I should get list of products
Actual behavior
I get empty array
Tested environment (Emulator? Real Device?)
Real device -> iPhone SE, iOS 12.3.1
Emulator -> iOS 12.1 (Multiple devices)
Steps to reproduce the behavior
In-App Purchase is created in Ready to Submit status [Non-Consumable]
initConnection returns
true
getProducts returns
[]
Sku array with
my_product_id
match the one from App Store ConnectI did basically everything from Q/A and different blog posts
without any luck.
Update:
I did some additional debugging and it looks like
RNIapIos.getItems(skus)
returns[]
The text was updated successfully, but these errors were encountered: