skip to Main Content

I’m trying to fetch the products from the App Store Connect using StoreKit 2 but always returns an empty array:

let keys = [
    "com.app.suscripcion.mes.1"
]
        
let storeProducts = try await Product.products(for: keys)

I had added a key on the InApp Purchase section:

enter image description here

What do I have to do to fetch the products from the App Store Connect? If I use a .storekit configuration file it works but with a real scenario doesn’t work

2

Answers


  1. Chosen as BEST ANSWER

    To solve this problem, the Account Holder from App Store Connect, inside Agreements, Tax, and Banking, needs to Set Up Tax and Banking to Paid Apps in order to get the InApp Purchase products from App Store Connect:

    enter image description here

    After that, the Status for the Paid Apps Type need to change to Active in order to make it work.


  2. Check if the StoreKit Configuration value is set to none in the options of the scheme that was executed.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search