Skip to main content

In my app I don’t use the current offering.

if let firstPaywallOffer = offersr"first_paywall_standart_offer"]{
self.firstPaywallPackages=firstPaywallOffer.availablePackages.map({$0.storeProduct})
}

I am getting my paywall offering like this. In the documentation experiment’s just change the current offering. How can I use experiments feature in my app. Do I have to use the current offering? 

 if let coinOfferings = offersf"first_coin_offerings"]{
self.coinPackages = coinOfferings.availablePackages.map({$0.storeProduct})
}
if let specialOfferOfferings = offersf"special_offer_offering"]{
self.specialOfferPackages = specialOfferOfferings.availablePackages.map({$0.storeProduct})
}

The reason I use hardcoded id is that there are 3 different paywalls in my application and one of them is non-subscription packages.

Yes, you will need to use the current offering for Experiments to work. We determine what the “current” offer is per new user based on whether they’re in the control/experimental group.

 

You may want to look into something like offering overrides or Targeting to use the flexible current offering, but retain control over who sees which offering.