Solved

checkTrialOrIntroductoryPriceEligibility in a dev build returning INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS

  • 27 June 2024
  • 4 replies
  • 40 views

Badge +3

Is this to be expected? I’ve setup my free trial in App Store Connect for one of my two products (the annual plan) and everything on that end seems to be good to go. But every time I hit checkTrialOrIntroductoryPriceEligibility in my simulator i’m getting INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS.

 

Is there anything I need to do in my Revenuecat dashboard to support adding a free trial? I’m seeing the free trial discount details coming down on product.discounts[0] from my getOfferings call.

icon

Best answer by lfkwtz 3 July 2024, 13:36

View original

This post has been closed for comments

4 replies

Badge +3
offerings.current.availablePackages = [
{
"identifier": "$rc_monthly",
"offeringIdentifier": "default",
"packageType": "MONTHLY",
"product": {
"priceString": "$4.99",
"introPrice": null,
"identifier": "kma_499_1m",
"currencyCode": "USD",
"productType": "NON_CONSUMABLE",
"discounts": [],
"description": "Access videos and our training tracker",
"title": "Monthly premium subscription",
"price": 4.99,
"productCategory": "SUBSCRIPTION",
"subscriptionPeriod": "P1M"
}
},
{
"offeringIdentifier": "default",
"identifier": "$rc_annual",
"product": {
"currencyCode": "USD",
"priceString": "$49.99",
"title": "Annual premium subscription",
"description": "Access videos and our training tracker",
"discounts": [
{
"identifier": "annual_free_trial",
"price": 0,
"priceString": "$0.00",
"period": "P3D",
"periodNumberOfUnits": 3,
"cycles": 1,
"periodUnit": "DAY"
}
],
"productType": "NON_CONSUMABLE",
"identifier": "kma_4999_1y",
"productCategory": "SUBSCRIPTION",
"subscriptionPeriod": "P1Y",
"price": 49.989999999999995,
"introPrice": null
},
"packageType": "ANNUAL"
}
]

availableOffers = {
"kma_4999_1y": {
"description": "Product does not have trial or introductory price.",
"status": 3
},
"kma_499_1m": {
"status": 3,
"description": "Product does not have trial or introductory price."
}
}

 

sharing the returned data from Purchases.getOfferings() and Purchases.checkTrialOrIntroductoryPriceEligibility([‘kma_4999_1y’, ‘kma_499_1m’])

Userlevel 5
Badge +9

Hi @lfkwtz,

First, are you using StoreKitTest when testing on simulator? If yes, you’ll need to make sure the free trial is added to the StoreKitTest configuration file as well.

Normally I would recommend using StoreKitTest on simulator or the sandbox environment on a real device. Since you’re setting things up in App Store Connect try testing on a real device and see if that fixes things.

Badge +3

Just tested on a development build on a real device and I’m getting the same result.

I read in the forums that sandbox / development environments can sometimes result in the INTRO_ELIGIBILITY_STATUS_UNKNOWN error --- but i’m getting INTRO_ELIGIBILITY_STATUS_NO_INTRO_OFFER_EXISTS which makes me think this is a separate issue not related to being in a development environment?

Badge +3

figured out the issue.

i had setup a “promotional offer” for a 3 day trial but what i needed was an “introductory offer” for a 3 day trial.