Hey there,
I just noticed that the iOS 12.2 SDK added a property to SKProduct called "discounts", which is an array of SKProductDiscount.
According to the documentation :
"The discounts array contains all the offers that you set up in App Store Connect that can be made available to your user for this product."
So I got two questions :
1) Can we assume that the SKProductDiscount that are contained in this array will only be SKProductDiscounts for which the user is eligible ?
Specifically, I found Introductory pricing to be a pain to implement, since we have to perform in-app receipt validation and parse it to determine whether the user is eligible to this offer. Knowing for sure that the user is eligible (or not) at the time we retrieve the SKProduct information would solve everything.
2) For testing purposes, I just created a new in-app purchase subscriptions family, containing a single auto-renewable subscription. I set up an introductory price on this product.
When querying the App Store with the information about this product, I notice that the "discounts" array is empty, but the "introductoryPrice" property is set and contains the right introducy price I just set up. Does it mean that the user isn't eligible to the introductory price for this subscription ? How can it be, since I just created a new subscriptions family ?
Maybe I'm deeply mistaken ; I assumed that this "discounts" array would contain the Introductory Pricing discounts (since, after all, they ARE SKProductDiscounts) as well as the new offers Apple just rolled out for returning subscribers, but maybe "discounts" is only meant to contain the latter.
I would really appreciate some help on this matter. Thanks in advance and have a great day !