What's new
- iOS promotional offers support
To load the promo offer data, call the following function.
var promo = subscriptionProduct.SkProduct?.Discounts?.Find(
discount => discount.Identifier == "my_promo_offer_id"
);
if (promo != null) {
Qonversion.GetSharedInstance().GetPromotionalOffer(subscriptionProduct, promo, (promoOffer, error) => {
// Handle result here
});
}
Then make a purchase using this promo offer.
var purchaseOptions = new PurchaseOptionsBuilder()
.SetPromotionalOffer(promoOffer)
.Build();
Qonversion.GetSharedInstance().PurchaseProduct(
subscriptionProduct,
purchaseOptions,
(entitlements, error, isCancelled) =>
{
...
});