-
Notifications
You must be signed in to change notification settings - Fork 93
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introductory Offer Support? #85
Comments
Upon closer investigation into the TPA codebase a variable similar to |
Hi @Jerland2, sorry for the late response, I've been off the grid for the last couple weeks and going to be online next week. I think we can do it, but I need some time. Thanks, |
Hi @Jerland2, I'm back and about to start working on it. I think, I will have something to try later today. |
I've pushed two new methods to check whether user is eligible for introductory offer into Example:
I think we can also check whether the user is not eligible for any products within the same subscription group. Let me know if you need it. |
brilliant idea, we need it 🥇 |
We will definitely have it, just need to check whether current implementation works well and if so I will merge it to master and then, I will implement checking whether the user is eligible for any products within the same subscription group. |
I've push code into Basically, you can retrieve a subscription group from
I think, I will merge it into master tomorrow. |
cool, I have a day off today, will check tomorrow. |
Hi @tikhop, |
@ungerc thanks for checking it out. I'm going to release it later today. |
thanks @tikhop, |
@ungerc I'm sorry — updating cocoapods right now. |
@ungerc ✅ |
me again @tikhop 👋🏽, |
Well, there are two ways to check eligibility for a subscription group. First, you need just to pass a set of product identifiers:
Second, you must prepare
|
oh here: |
oh and it doesn't, now I get it - my head was in a very dark place |
Yeah, It may seem like overengineering, but I tried to emphasize that the set of product identifiers must belong to the same subscription group. |
Wondering if we can get introductory offer support by implementing the ability to check eligibility?
Each product returns whether it has an introductory offer tied to it. However in order to check eligibility we must parse the receipt. (Hence the feature request)
This would entail parsing the receipt for
is_trial_period
as well asis_in_intro_offer_period
. If these values are equal to 1 somewhere, a user has already used free trial/introductory offer.Helpful articles outlining this:
https://www.revenuecat.com/blog/ios-introductory-prices
https://developer.apple.com/documentation/storekit/in-app_purchase/subscriptions_and_offers/implementing_introductory_offers_in_your_app
https://blog.apphud.com/introductory-offers-in-ios/
Helpful article snippet:
"As of iOS 12.0, SKProduct now includes subscriptionGroupIdentifier property, so it's now possible to compute Introductory Pricing eligibility locally.
While this update is great, calculating intro eligibility locally still requires a lot of unnecessary dev work.
To check intro eligibility on iOS >= 12.0, you need to:
https://www.revenuecat.com/blog/ios-introductory-prices
The text was updated successfully, but these errors were encountered: