The following code published at https://www.revenuecat.com/docs/subscription-guidance/subscription-offers#checking-eligibility is unable to detect the trial offer eligibility correctly in the sandbox environment. Is there any solution to this? Thank you!
Purchases.shared.getOfferings { offerings, error in
if let product = offerings?.current?.availablePackages.first?.storeProduct {
Purchases.shared.checkTrialOrIntroDiscountEligibility(product: product) { eligibility in
if eligibility == .eligible {
// show trial/introductory terms
} else {
// user is not eligible, show non-trial/introductory terms
}
}
}
}