Skip to main content

Hi guys,

I complete setup for product and introductory offers for it on AppStore connect. Now I check eligibility for new user (by checkTrialOrIntroductoryPriceEligibility), and completion block return dictionary with eligibility statuses and associated products. My problem is that status for all products is “Not eligible for trial or introductory price.” Why SDK return wrong status?

@Jonah I’m sorry I missed your questions!! I’m super late to reply, but: `package.storeProduct.discounts` relates to Promotional Offers, whereas `checkTrialOrIntroDiscountEligibility` relates to Introductory Offers. To get the Introductory Offers, use `package.storeProduct.introductoryDiscount`. 

 

@Petri `checkTrialOrIntroDiscountEligibility` is currently not available in our Android API, although we do have plans to introduce it later this year. 


Is there some other way to to check eligibility if checkTrialOrIntroDiscountEligibility is not available on Android? (we are using the Flutter SDK)


@Jonah I’m sorry I missed your questions!! I’m super late to reply, but: `package.storeProduct.discounts` relates to Promotional Offers, whereas `checkTrialOrIntroDiscountEligibility` relates to Introductory Offers. To get the Introductory Offers, use `package.storeProduct.introductoryDiscount`. 

 

@Petri `checkTrialOrIntroDiscountEligibility` is currently not available in our Android API, although we do have plans to introduce it later this year. 


Is this available in Android SDK? I could not find anything related to `checkTrialOrIntroDiscountEligibility` in the Android API?


.


Hi @Andy  - I’m now on latest iOS SDK (4.12.0). I’m using a SKProduct that has a free trial. `checkTrialOrIntroDiscountEligibility` is returning elligible, however. `package.storeProduct.discounts` is empty. 

 

Is this expected?


@Jonah thanks for reporting! We already have a fix in place, which will go out very soon. In the meantime, one way to work around this is to configure the SDK to use StoreKit 1. 

 

Purchases.configure(with:

    Configuration.Builder(withAPIKey: Constants.apiKey)

        .with(appUserID: "<app_user_id>")

        .with(usesStoreKit2IfAvailable: false)

        .build()

)

Thanks for the quick reply. Ok will give that a shot!


I may have found a bug.

 

I have a product that has no introductory offer set up on Connect. However, `checkTrialOrIntroductoryPriceEligibility` is returning `eligible`.

 

Do note, I have other product id’s in the same subscription group that do have trials. 

 

Happening in both sandbox and production. Latest iOS sdk. 


Shall we use TrialOrIntroPriceEligibilityChecker’s checkEligibility function to check for trial eligibility for iOS 14 +
Edit: Okey found checkTrialOrIntroDiscountEligibility


HI @atineoSE ,

 

Unfortunately I don’t know of another way to consistently test user eligibility except for creating a new sandbox user each time. That is usually our solution to this issue.   


Hi @cody, we implemented checkTrialOrIntroductoryPriceEligibility

Some of our testers use TestFlight and tested purchases in the past, so they reset eligibility for intro pricing from App Store settings but the result remains “Not eligible for trial or introductory price.”.

We can confirm the intro (in this case a trial) was available by trying to proceed to the payment and checking the purchase confirmation page.

Is it possible that there is a bug regarding this specific case?

Thanks


@cody If the user has never purchased anything, will there be a receipt available to parse?


Reply