Something is wrong with the checkTrialOrIntroductoryPriceEligibility function. I'm not sure if I'm doing it right; to be sure, I wanted to share my problem here first.In my iOS app,
I use this snippet to check whether there is an eligible introductory price:
if (Platform.OS === 'ios') {
// Purchases.checkTrialOrIntroductoryPriceEligibility is only available for iOS
const introEligibilityStatuses = await Purchases.checkTrialOrIntroductoryPriceEligibility([
pkg.product.identifier,
]);
return (
introEligibilityStatuses[pkg.product.identifier].status ===
Purchases.INTRO_ELIGIBILITY_STATUS.INTRO_ELIGIBILITY_STATUS_ELIGIBLE
);
}
In one account, everything works fine—I haven't bought anything with that account yet.
But the second account (with expired introductory subscription) returns wrong information:
The status returns INTRO_ELIGIBILITY_STATUS_ELIGIBLE (2), which means the introductory price is available, so I show the discount in the app. However, when the user clicks the buy button, they don’t see any discount on Apple's sheet.
Am I doing it right, or is there a problem in the SDK?
