Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StoreKit 2 - Product request always empty

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

like image 358
pableiros Avatar asked Mar 05 '26 09:03

pableiros


1 Answers

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.

like image 141
pableiros Avatar answered Mar 06 '26 23:03

pableiros