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:
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
To solve this problem, the
Account Holder
fromApp Store Connect
, insideAgreements, Tax, and Banking
, needs toSet Up Tax and Banking
to Paid Apps in order to get the InApp Purchase products fromApp Store Connect
:After that, the Status for the Paid Apps Type need to change to
Active
in order to make it work.Check if the StoreKit Configuration value is set to none in the options of the scheme that was executed.