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
Release/3.14.1 #1264
Release/3.14.1 #1264
Conversation
…efreshes the receipt
Purchases/Public/RCPurchases.h
Outdated
@@ -382,7 +382,7 @@ NS_SWIFT_NAME(syncPurchases(_:)); | |||
/** | |||
Computes whether or not a user is eligible for the introductory pricing period of a given product. You should use this method to determine whether or not you show the user the normal product price or the introductory price. This also applies to trials (trials are considered a type of introductory pricing). | |||
|
|||
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligibilty, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK. | |||
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligiibilty, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL I went to fix it and I made it worse
expect(self.requestFetcher.refreshReceiptCalled) == false | ||
expect(self.receiptFetcher.receiptDataCalled) == false | ||
|
||
purchases!.checkTrialOrIntroductoryPriceEligibility([]) { (eligibilities) in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The !
isn't required right? It's already an implicitly unwrapped optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great catch!! I was mislead because we're actually treating purchases
as a regular optional everywhere in this file. I updated all references, since that's not necessary
…onal `Purchases` as a regular optional
This is the first step toward fixing RevenueCat/react-native-purchases#328. |
@@ -382,7 +382,7 @@ NS_SWIFT_NAME(syncPurchases(_:)); | |||
/** | |||
Computes whether or not a user is eligible for the introductory pricing period of a given product. You should use this method to determine whether or not you show the user the normal product price or the introductory price. This also applies to trials (trials are considered a type of introductory pricing). | |||
|
|||
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligibilty, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK. | |||
@note Subscription groups are automatically collected for determining eligibility. If RevenueCat can't definitively compute the eligibility, most likely because of missing group information, it will return `RCIntroEligibilityStatusUnknown`. The best course of action on unknown status is to display the non-intro pricing, to not create a misleading situation. To avoid this, make sure you are testing with the latest version of iOS so that the subscription group can be collected by the SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodding.gif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 🐐 🎈
checkTrialOrIntroductoryPriceEligibility
might refresh the receipt if it's not present on device, causing a log in prompt for App Store credentials.Release/3.14.1 #1264