adaptyteam / AdaptySDK-Flutter

SDK for growing mobile in-app purchases
https://docs.adapty.io/docs/quickstart
MIT License
88 stars 15 forks source link

Can't get promotional offers to work. #102

Closed PetrKubes97 closed 6 months ago

PetrKubes97 commented 6 months ago

Hi, I'm struggling to make Apple's promotional offers work. I've followed the tutorial and double checked everything, but no success.

  1. I've created promotional offer in appstore connect.
  2. I've added private key to both App Store promotional offers and In-app purchases in Adapty settings.
  3. I've created a product with correct App Store Product ID and App Store Offer Id.
  4. I've created a paywall and selected the offer.
  5. I've reset all purchases and eligibility for App Store sandbox account
  6. Completely reinstalled the App

I'm still getting subscriptionDetails.promotionalOfferId == null for the paywall.

Any idea how should I go about debugging this? Thanks in advance.

Also note that I'm using Adapty 2.7.1, because 2.9.0 is not compatible with paywall builder.

x401om commented 6 months ago

Hi, @PetrKubes97! The thing is that Apple's promotional offers are intended for old or existing subscribers, meaning you will not be able to get a promo offer using a clean sandbox account. There are two ways you can go, depending on your goal: you can create an introductory offer using App Store Connect, and it will be automatically available to all new users, or you can test a promo offer with a user who has a purchase history.

You can read about introductory offers here and about promo offers there.

PetrKubes97 commented 6 months ago

Thanks! It's a little confusing on Apple's side.