Skip to content

8.2.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 21 Nov 15:58
67ac2ea

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) =>
  {
    ...
  });