I have followed instructions from the official documentation (https://docs.revenuecat.com/docs/ios-subscription-offers) but I can’t get promotional offers to appear.
I’m using a sandbox user, which has an expired annual subscription. When I call any of these methods, I either get 0 offers or it says that the user is not eligible for the promo offer (pay up front, x% off first year).
let d = package.storeProduct.discounts (returns 0)
let e = await Purchases.shared.checkTrialOrIntroDiscountEligibility(product: package.storeProduct) (returns ineligible)
let promoOffers = await package.storeProduct.getEligiblePromotionalOffers() (returns 0)
Here are the entitlements for the user:
identifier=pro,
isActive=false,
willRenew=false,
periodType=Normal,
latestPurchaseDate=Optional(2022-05-28 12:36:19 +0000),
originalPurchaseDate=Optional(2022-05-27 16:03:13 +0000),
expirationDate=Optional(2022-05-28 13:36:19 +0000),
store=Store(rawValue: 0),
productIdentifier=com.mycompany.myapp.pro.yearly,
isSandbox=true,
unsubscribeDetectedAt=Optional(2022-05-28 12:36:07 +0000),
billingIssueDetectedAt=nil,
ownershipType=PurchaseOwnershipType(rawValue: 0)
What I am doing wrong?