This section is about Apple Promotional Offers
Please do not confuse them with Apple Introductory Offers and App Store Promoted Purchases, which are used for new users and for promoting your products through the App Store, respectively.- Create a promotional offer in App Store Connect.
- Generate a Private Key, download its private part, and provide it to us along with the Private Key ID.
- Use the new features of our SDK to obtain the promo offer and make a purchase with it.
Create a promotional offer
Add your Promotional Offer in App Store Connect. You can find the instructions in the official documentation.Generate a Private Key
Next, you need to generate a Private Key and download its private part. See details in the documentation. After downloading the file, paste it into the App Store Connect Private Key field and the key identifier in the App Store Connect Key Identifier field.
Get a promotional offer and make a purchase
The promotional offers you create in App Store Connect can be accessed within our SDK by callingQonversion.Product -> skProduct -> discounts.
You can determine whether the user is eligible for a promotional offer based on your product’s business logic. Once you decide to grant the promotional offer to a user, you need to call the following function:
Qonversion.PromotionalOffer object, which you will need to pass to the purchase function.
Determine eligibility
What availability conditions do we check for promotional offers? Those described in the official documentation. In the future, these options may be expanded. We consider a user eligible for an offer if they have any active or expired subscription from any subscription group.Make a purchase
To make a purchase with a promotional offer, take the object you received from the previous function, pass it into the purchase options object, and pass it to thepurchaseProduct function.
Migrate from SwiftyStoreKit Google Play Store