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

  1. Building project on xCode 12.3
  2. try to load products using RNIap.getProducts(itemSkus);
  3. Getting empty list of products

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

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: image