react-native-iap: Not able to get products (empty product array) on xCode 12.3. But working successfully on xCode 11.3 & 12.1
Version of react-native-iap
“react-native-iap”: “^5.1.1”
Version of react-native
“react”: “16.13.1”, “react-native”: “0.63.2”,
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
Should Load products which are defined in apple console on xCode 12.3
Actual behavior
Getting empty array of products when calling RNIap.getProducts(itemSkus);
It is successfully working on xCode 11.3 & 12.1 but not getting products on 12.3
Tested environment (Emulator? Real Device?)
Both Real device and Simulator
Steps to reproduce the behavior
- Building project on xCode 12.3
- try to load products using
RNIap.getProducts(itemSkus); - Getting empty list of products
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (1 by maintainers)
Where do I get this storekitConfig file?
Tried everything. Confirmed, for me it was the need to add a StoreKit file (even when debugging on a real device). Then, don’t forget to link the StoreKit file in Product -> Schemes -> Edit Scheme: