- Introduced new
Storefront
type to abstract SK1'sSKStorefront
and SK2'sStoreKit.Storefront
. - Exposed
Storefront.currentStorefront
. - Added new
ErrorCode.offlineConnectionError
to differenciate offline errors versus the more generic.networkError
. - Added
Purchases-setFirebaseAppInstanceID
to allow associating RevenueCat users with Firebase. - Added
Purchases.setPushTokenString
as an overload toPurchases.setPushToken
. - Renamed
PurchasesDelegate.purchases(_:shouldPurchasePromoProduct:defermentBlock:)
toPurchasesDelegate.purchases(_ purchases: Purchases, readyForPromotedProduct product: StoreProduct, purchase:)
to clarify its usage (see #1460).
- Many improvements to error reporting and logging to help debugging.
- Optimized StoreKit 2 purchasing by eliminating a duplicate API request.
- A lot of under-the-hood improvements, mainly focusing on networking. If you see any issues we'd appreciate bug reports!
- Fixed a potential race condition when syncing user attributes #1479
-
Added new method
setMixpanelDistinctID
as a convenience method for setting the required attribute for the Mixpanel integration #1397 -
getPromotionalOffer
has been deprecated in favor ofpromotionalOffer
#1405 -
getEligiblePromotionalOffers
has been deprecated in favor ofeligiblePromotionalOffers
#1405 -
StoreProductDiscount
now includes thenumberOfPeriods
property #1428
-
Added workaround for StoreKit 1 incorrectly reporting purchase cancellations #1450
-
MagicWeatherSwiftUI now includes an example for using
purchases(:shouldPurchasePromoProduct:defermentBlock:)
#1459 -
Various documentation improvements
-
Additional under-the-hood improvements, continuing to focus on network requests and tests.
-
Added new method
checkTrialOrIntroDiscountEligibility(product:)
, which allows you to check for intro or discount eligibility for a singleStoreProduct
. RevenueCat#1354 -
Added explicit parameter name for
checkTrialOrIntroDiscountEligibility(productIdentifiers:)
. The existing method without the parameter name still work, but is now deprecated. Xcode will offer an auto fix-it for it. RevenueCat#1362 -
Made
StoreProduct
initializers public so they can be used for testing.
-
Added auto-fix-it for
invalidatePurchaserInfoCache
rename RevenueCat#1379 -
Docs improvements
-
A lot of under-the-hood improvements, mainly focusing on network requests and tests.
RevenueCat iOS SDK v4 is here!!
- See our RevenueCat V4 API update doc for API updates. Note: This release is based off of 4.0.0-rc.4. Developers migrating from that version shouldn't see any changes.
There have been a lot of changes since v3!
Here are the highlights:
New async / await
alternatives for all APIs that have completion blocks, as well as an AsyncStream
for CustomerInfo.
New types that wrap StoreKit's native types, and we cleaned up the naming of other types and methods for a more consistent experience.
You can now use showManageSubscriptions()
and beginRefundRequest()
to help your users manage their subscriptions right from the app.
We rewrote the SDK in 100% Swift. This made the code more uniform and easy to maintain, and helps us better support StoreKit 2.
[Experimental] Introduced support for using StoreKit 2 under the hood for compatible devices. This is currently in beta phase, and disabled by default.
When enabled, StoreKit 2 APIs will be used under the hood for purchases in compatible devices. You can enable this by configuring the SDK passing useStoreKit2IfAvailable: true
.
On devices that don't support StoreKit 2, StoreKit 1 will be used automatically instead.
- See our RevenueCat V4 API update doc for API updates.
We built a new Documentation site with Docc with cleaner and more detailed docs. The new documentation can be found here.
- Fourth RC for RevenueCat framework v4 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
RC 4 introduces the following updates:
- Replaced
checkPromotionalDiscountEligibility
withgetPromotionalOffer
, which returns aPromotionalOffer
. - Renamed
Purchases/purchase(package:discount:)
and its variants toPurchases/purchase(package:promotionalOffer:)
. They now take aPromotionalOffer
instead of aStoreProductDiscount
. - [Objective-C only]: Updated type of
StoreProduct.price
andStoreProductDiscount.price
fromNSDecimal
to the much more usefulNSDecimalNumber
.
- Added
StoreProduct.ProductType
, andStoreProduct.ProductCategory
, which provide extra information about whether a product is a consumable, non-consumable, auto-renewable or non-auto-renewable subscription. - Added
currencyCode
toStoreProduct
andStoreProductDiscount
. - Added
localizedPriceString
toStoreProductDiscount
.
- Documentation can be found in https://revenuecat-docs.netlify.app/documentation/Revenuecat.
- We've made several improvements to docstrings and added a few landing pages for the most important sections of the SDK.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
These changes add to all of the changes from beta RC 2, listed here..
- Third RC for RevenueCat framework v4 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
RC 3 introduces the following updates:
- Added
setCleverTapID
, for integration with CleverTap. - Added
.noIntroOfferExists
as anIntroEligibilityStatus
, for more granularity when checking for intro pricing eligibility. - Added
StoreProductDiscount.type
, which allows you to easily tell whether a discount represents a Promo Offer or an Intro Pricing.
- Documentation can be found in https://revenuecat-docs.netlify.app/documentation/Revenuecat.
- We've made several improvements to docstrings and added a few landing pages for the most important sections of the SDK.
- Fixed a few instances where Xcode's automatic migration tools wouldn't automatically suggest a fix-it for updated code.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
These changes add to all of the changes from beta RC 2, listed here..
- Second RC for RevenueCat framework v4 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
RC 2 introduces the following updates:
- Removed
SubscriptionPeriod.Unit.unknown
. Subscriptions with emptySubscriptionPeriod
values will havenil
subscriptionPeriod
instead. - Removed
StoreProductDiscount.none
, since it wasn't needed. - Added
useStoreKit2IfAvailable
(Experimental) configuration option. This is disabled by default. If enabled, the SDK will use StoreKit 2 APIs for purchases under the hood. This is currently in an experimental phase, and we don't recommend using it in production in this build.
- Documentation is now using DocC and it can be found in https://revenuecat-docs.netlify.app/documentation/Revenuecat.
- We've made several improvements to docstrings and added a few landing pages for the most important sections of the SDK.
- Fixed a few instances where Xcode's automatic migration tools wouldn't correctly update the code.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
These changes add to all of the changes from beta RC 1, listed here..
- First RC for RevenueCat framework v4 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
RC 1 introduces the following updates:
-
Purchases.paymentDiscount(forProductDiscount:product:completion:)
andPurchases.paymentDiscount(forProductDiscount:product:)
have been removed. Now, instead of obtaining theSKPaymentDiscount
from aSKProductDiscount
to then callpurchase(package:discount:)
, you check eligibility for the promo offer by callingcheckPromotionalDiscountEligibility(forProductDiscount:product:)
, then get theStoreProductDiscount
directly from theStoreProduct
and pass that intopurchase(package:discount:)
. -
StoreProduct
andStoreProductDiscount
, replaceSKProduct
andSKProductDiscount
in the following methods:Purchases.getProducts(_:completion:)
Purchases.products(_:)
Purchases.purchase(product:completion:)
Purchases.purchase(product:)
Purchases.purchase(product:discount:completion:)
Purchases.purchase(product:discount:)
Purchases.purchase(package:discount:completion:)
Purchases.purchase(package:discount:)
PurchasesDelegate.purchases(shouldPurchasePromoProduct:defermentBlock:)
-
StoreProduct.introductoryPrice
has been renamed toStoreProduct.introductoryDiscount
-
StoreTransaction
now includesquantity
-
Renamed
Purchases.restoreTransactions
toPurchases.restorePurchases
-
Lowered
StoreProduct.introductoryDiscount
availability to iOS 11.2 and equivalent OS versions -
Added several
@available
annotations for automatic migration from StoreKit types
In addition to all of the changes from beta 10, listed here.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
- Tenth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
Beta 10 introduces the following updates:
- A new type,
StoreTransaction
, replacesSKPaymentTransaction
in the return types of the following methods:Purchases.purchase(product:completion:)
Purchases.purchase(package:completion:)
Purchases.purchase(package:discount:completion:)
Purchases.purchase(package:discount:completion:)
PurchasesDelegate.purchases(shouldPurchasePromoProduct:defermentBlock:)
CustomerInfo.nonSubscriptionTransactions
StoreProduct.PromotionalOffer
has been renamed toStoreProduct.StoreProductDiscount
.
In addition to all of the changes from Beta 9, listed here.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
- Ninth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
identify
, previously deprecated, has been removed in favor oflogIn
.reset
, previously deprecated, has been removed in favor oflogOut
.Package.product
has been replaced withPackage.storeProduct
. This is an abstraction of StoreKit 1'sSKProduct
and StoreKit 2'sStoreKit.Product
, but it also adds useful features likepricePerMonth
andpriceFormatter
. The underlying objects from StoreKit are available throughStoreProduct.sk1Product
andStoreProduct.sk2Product
.
purchases-ios
v4 requires using Xcode 13.2 or newer.
It also updates the minimum deployment targets for iOS, macOS and tvOS.
v3 | v4 | |
---|---|---|
iOS | 9.0 | 11.0 |
tvOS | 9.0 | 11.0 |
macOS | 10.12 | 10.13 |
watchOS | 6.2 | 6.2 (unchanged) |
- This beta introduces new methods that add functionality using StoreKit 2:
showManageSuscriptions(completion:)
beginRefundRequest(forProduct:)
beginRefundRequest(forEntitlement:)
.beginRefundRequestForActiveEntitlement()
checkTrialOrIntroductoryPriceEligibility(productIdentifiers:completion:)
now uses StoreKit 2 if it's available, to make calculation more accurate and fast.- A new flag has been introduced to
setup
,useStoreKit2IfAvailable
(defaults tofalse
), to use StoreKit 2 APIs for purchases instead of StoreKit 1.
- In purchases-ios v3,
Async
/Await
alternative APIs were made available through Xcode's auto-generation for Objective-C projects. This beta re-adds theAsync
/Await
alternative APIs for v4.
showManageSuscriptions(completion:)
: Use this method to show the subscription management for the current user. Depending on where they made the purchase and their OS version, this might take them to themanagementURL
, or open the iOS Subscription Management page.beginRefundRequestForCurrentEntitlement
: Use this method to begin a refund request for the purchase that granted the current entitlement.beginRefundRequest(forProduct:)
: Use this method to begin a refund request for a purchase, specifying the product identifier.beginRefundRequest(forEntitlement:)
: Use this method to begin a refund request for a purchase, specifying the entitlement identifier.- Adds an optional
useStoreKit2IfAvailable
parameter tosetup
(defaults tofalse
). If enabled, purchases will be done by using StoreKit 2 APIs instead of StoreKit 1. This is currently experimental, and not all features are supported with StoreKit 2 APIs. - Use
verboseLogHandler
orverboseLogs
to enable more details in logs, including file names, line numbers and method names.
- Promotional offers and deferred purchases are not currently supported with StoreKit 2. If your app uses either of those, you should omit
useStoreKit2IfAvailable
insetup
or set it tofalse
.
- There are lots of under the hood improvements. If you see any issues we'd appreciate bug reports!
- Eighth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Replaced custom DateFormatter with new ISO8601DateFormatter RevenueCat#998
- Put CustomerInfo Logging into LoginHandler function RevenueCat#1095
- Pass underlying NSError localizedDescription RevenueCat#1077
- ErrorCode conforms to CustomNSError to provide description RevenueCat#1022
- Seventh beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- macOS: improved ErrorCode.storeProblemError to indicate potential cancellation RevenueCat#943
- Log when duplicate subscription time lengths exist during Offering init RevenueCat#954
- PurchasesOrchestrator.paymentDiscount(forProductDiscount:product:completion:): improved error information RevenueCat#957
- Make a public rawData a thing for all our datatypes RevenueCat#956
- Detect ErrorCode.productAlreadyPurchasedError when SKError.unknown is actually caused by it RevenueCat#965
- Sixth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Add more specific backend error subcodes RevenueCat#927
- Fifth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Improve error handling for backend errors RevenueCat#922
- Replaced #file with #fileID RevenueCat#921
- Rename a few public APIs to reduce confusion RevenueCat#917
- Fourth beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Purchaser to Customer rename RevenueCat#878 RevenueCat#899
- Ensure restoreTransactions called on main thread RevenueCat#908
- Fix logging messages for HTTPClient RevenueCat#901
- Offerings completion not called in edge case RevenueCat#879
- Fix Offerings:completion: not returning if SKProductsRequest hangs RevenueCat#909
- Added setAirshipChannelID RevenueCat#869 RevenueCat#877
- Third beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Fix bug logging the incorrect missing product IDs in
getOfferings
- Fix MagicWeather sample app with latest updates
- Add caching of completion blocks for
createAlias
andidentify
calls to avoid sending calls with the same parameters at the same time
- Second beta for RevenueCat framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Our API is now more consistent,
completionBlock
->completion
across Swift/ObjC - Fixed SPM warning relating to excluding
RequiresXcode13
- Make parameter labels that were optional pre-migration optional again
- First beta for RevenueCat (previously Purchases) framework 🎉 100% Swift framework + ObjC support.
- See our RevenueCat V4 API update doc for API updates.
- Cache callbacks for
createAlias
andidentify
to avoid sending multiple calls with same parameters at the same time RevenueCat#874
- Updated
getOfferings
call to be performed serially instead of concurrently. RevenueCat#831
- Fixed a bug where checkTrialOrIntroductoryPriceEligibility would return
eligible
for products that don't have intro pricing RevenueCat#679 - Calls to
addAttribution
will now automatically get translated intosubscriberAttributes
RevenueCat#609 - Updated links to community and support in
README.md
https://github.com/RevenueCat/purchases-ios/commit/209615b9b8b4dc29ad37f51bf211e3710a2fe443 - Excluded swift migration tasks in stale issue detection RevenueCat#698 RevenueCat#702
- Fixed a bug where calling setDebugLogsEnabled(false) enables debug logs when it should not. RevenueCat#663
- Fixed an issue in some versions of Xcode where compiling would fail with
Definition conflicts with previous value
inETagManager.swift
RevenueCat#659
- Introduces
logIn
, a new way of identifying users, which also returns whether a new user has been registered in the system.logIn
uses a new backend endpoint. - Introduces
logOut
, a replacement forreset
.
-
deprecates
createAlias
in favor oflogIn
-
deprecates
identify
in favor oflogIn
-
deprecates
reset
in favor oflogOut
-
deprecates
allowSharingAppStoreAccount
in favor of dashboard-side configuration
- Fixed
sharedPurchases
nullability - Introduced new property,
isConfigured
, that can be used to check whether the SDK has been configured andsharedPurchases
won't benil
. RevenueCat#508
- Added new property
logLevel
, which provides more granular settings for the log level. Valid values aredebug
,info
,warn
anderror
. - Added new method,
setLogHandler
, which allows developers to use their own code to handle logging, and integrate their existing systems. RevenueCat#481 RevenueCat#515
- Deprecated
debugLogsEnabled
property in favor ofLogLevel
. UsePurchases.logLevel = .debug
as a replacement.
- Fixed CI issues with creating pull requests RevenueCat#504
- Improved Github Issues bot behavior RevenueCat#507
- Added e-tags to reduce network traffic usage RevenueCat#509
- Fixed a warning in Xcode 13 with an outdated path in Package.swift RevenueCat#522
- Switched to Swift Package Manager for handling dependencies for test targets. RevenueCat#527
- Removed all
fatalError
s from the codebase RevenueCat#529 RevenueCat#527 - Updated link for error message when UserDefaults are deleted outside the SDK RevenueCat#531
- Improved many of the templates and added
CODE_OF_CONDUCT.md
to make contributing easier RevenueCat#534 RevenueCat#537 RevenueCat#589
- Updates log message for
createAlias
to improve clarity RevenueCat#498 - Adds
rc_
to all Foundation extensions to prevent name collisions RevenueCat#500
- Exposes
ownershipType
inEntitlementInfo
, which can be used to determine whether a given entitlement was shared by a family member or purchased directly by the user. RevenueCat#483 - Adds new
RCConfigurationError
type, which will be thrown when SDK configuration errors are detected. RevenueCat#494
- Obfuscates calls to
AppTrackingTransparency
to prevent unnecessary rejections for kids apps when the framework isn't used at all. RevenueCat#486
- Fix automatic Apple Search Ads Attribution collection for iOS 14.5 RevenueCat#473
- Fixed
willRenew
values for consumables and promotionals RevenueCat#475 - Improves tests for EntitlementInfos RevenueCat#476
- Fixed a couple of issues with
.xcframework
output in releases RevenueCat#470 RevenueCat#469 - Fix Carthage builds from source, so that end customers can start leveraging XCFramework support for Carthage >= 0.37 RevenueCat#471
- Added .xcframework output to Releases, alongside the usual fat frameworks. RevenueCat#466
- Added PurchaseTester project, useful to test features while working on
purchases-ios
. RevenueCat#464 - Renamed the old
SwiftExample
project toLegacySwiftExample
to encourage developers to use the new MagicWeather apps RevenueCat#461 - Updated the cache duration in background from 24 hours to 25 to prevent cache misses when the app is woken every 24 hours exactly by remote push notifications. RevenueCat#463
- Added SwiftUI sample app RevenueCat#457
- Fixed a bug where
🍎‼️ Invalid Product Identifiers
would show up even in the logs even when no invalid product identifiers were requested. RevenueCat#456
- Re-added
RCReceiptInUseByOtherSubscriberError
, but with a deprecation warning, so as not to break existing apps. RevenueCat#452
- Enables improved logging prefixes so they're easier to locate. RevenueCat#441 RevenueCat#443
- Fixed issue with Prepare next version CI job, which was missing the install gems step. RevenueCat#440
- Adds a new property
simulateAsksToBuyInSandbox
, that allows developers to test deferred purchases easily. RevenueCat#432 RevenueCat#436 - Slight optimization so that offerings and purchaserInfo are returned faster if they're cached. RevenueCat#433 RevenueCat#401
- Revamped logging strings, makes log messages from
Purchases
easier to spot and understand. RemovedRCReceiptInUseByOtherSubscriberError
, replaced byRCReceiptAlreadyInUseError
. RevenueCat#426 RevenueCat#428 RevenueCat#430 RevenueCat#431 RevenueCat#422 - Fix deploy automation bugs when preparing the next version PR RevenueCat#434 RevenueCat#437
- Fixed issues when compiling with Xcode 11 or earlier RevenueCat#416
- Fixed termination warnings for finished SKRequests RevenueCat#418
- Fixed CI deploy bugs RevenueCat#421
- Prevents unnecessary backend calls when the appUserID is an empty string RevenueCat#414
- Prevents unnecessary POST requests when the JSON body can't be correctly formed RevenueCat#415
- Updates git commit pointer for SPM Integration tests RevenueCat#412
- Added support for
SKPaymentQueue
'sdidRevokeEntitlementsForProductIdentifiers:
, so entitlements are automatically revoked from a family-shared purchase when a family member leaves or the subscription is canceled. RevenueCat#413 - Added support for automated deploys RevenueCat#411
- Fixed Xcode direct integration failing on Mac Catalyst builds RevenueCat#419
- Added support for StoreKit Config Files and StoreKitTest testing RevenueCat#407
- limit running integration tests to tags and release branches RevenueCat#406
- added deployment checks RevenueCat#404
- Added a silent version of restoreTransactions, called
syncPurchases
, meant to be used by developers performing migrations for other systems. RevenueCat#387 RevenueCat#403 - Added
presentCodeRedemptionSheet
, which allows apps to present code redemption sheet for offer codes RevenueCat#400 - Fixed sample app on macOS, which would fail to build because the watchOS app was embedded into it RevenueCat#402
- Fixed a race condition that could cause a crash after deleting and reinstalling the app RevenueCat#383
- Fixed possible overflow when performing local receipt parsing on 32-bit devices RevenueCat#384
- Fixed string comparison when deleting synced subscriber attributes RevenueCat#385
- Fixed docs-deploy job RevenueCat#386
- Fixed a typo in a RCPurchases.h RevenueCat#380
- Move test dependencies back to carthage RevenueCat#371 RevenueCat#373
- fixed tests for iOS < 12.2 RevenueCat#372
- Make cocoapods linking dynamic again RevenueCat#374
- Fix parsing of dates in receipts with milliseconds RevenueCat#367
- Add jitter and extra cache for background processes RevenueCat#366
- Skip install to fix archives with direct integration RevenueCat#364
- Renames files with names that caused issues when building on Windows RevenueCat#362
- Fixes crash when parsing receipts with an unexpected number of internal containers in an IAP ASN.1 Container RevenueCat#360
- Fixes crash when sending
NSNull
attributes toaddAttributionData:fromNetwork:
RevenueCat#359 - Added starter string constants file for logging RevenueCat#339
- Updates the Pod to make it compile as a static framework, fixing build issues on hybrid SDKs. Cleans up imports in
RCPurchases.h
. RevenueCat#353 - Fixes Catalyst builds and build warnings RevenueCat#352 RevenueCat#351
- Fix 'Invalid bundle' validation error when uploading builds to App Store using Carthage or binary RevenueCat#346
- Attribution V2:
- Deprecated
addAttributionData:fromNetwork:
andaddAttributionData:fromNetwork:forNetworkUserId:
in favor ofsetAdjustId
,setAppsflyerId
,setFbAnonymousId
,setMparticleId
- Added support for OneSignal viasetOnesignalId
- AddedsetMediaSource
,setCampaign
,setAdGroup
,setAd
,setKeyword
,setCreative
, andcollectDeviceIdentifiers
RevenueCat#321 RevenueCat#340 RevenueCat#331 - Prevent unnecessary receipt posts RevenueCat#323
- Improved migration process for legacy Mac App Store apps moving to Universal Store RevenueCat#336
- Added new SKError codes for Xcode 12 RevenueCat#334 RevenueCat#338
- Renamed StoreKitConfig schemes RevenueCat#329
- Fixed an issue where cached purchaserInfo would be returned after invalidating purchaserInfo cache RevenueCat#333
- Fix cocoapods and carthage release scripts RevenueCat#324
- Fixed a bug where
checkIntroTrialEligibility
wouldn't return when calling it from an OS version that didn't support intro offers RevenueCat#343
- Fixed a race condition with purchase completed callbacks RevenueCat#313
- Made RCTransaction public to fix compiling issues on Swift Package Manager RevenueCat#315
- Added ability to export XCFrameworks RevenueCat#317
- Cleaned up dispatch calls RevenueCat#318
- Created a separate module and framework for the Swift code RevenueCat#319
- Updated release scripts to be able to release the new Pod as well RevenueCat#320
- Added a local receipt parser, updated intro eligibility calculation to perform on device first RevenueCat#302
- Fix crash when productIdentifier or payment is nil. RevenueCat#297
- Fixes ask-to-buy flow and will now send an error indicating there's a deferred payment. RevenueCat#296
- Fixes application state check on app extensions, which threw a compilation error. RevenueCat#303
- Restores will now always refresh the receipt. RevenueCat#287
- New properties added to the PurchaserInfo to better manage non-subscriptions. RevenueCat#281
- Bypass workaround in watchOS 7 that fixes watchOS 6.2 bug where devices report wrong
appStoreReceiptURL
RevenueCat#330 - Fix bug where 404s in subscriber attributes POST would mark them as synced RevenueCat#328
- Addresses an issue where subscriber attributes might not sync correctly if subscriber info for the user hadn't been synced before the subscriber attributes sync was performed. RevenueCat#327
- Feature/defer cache updates if woken from push notification RevenueCat#288
- Removes all references to ASIdentifierManager and advertisingIdentifier. This should help with some Kids apps being rejected RevenueCat#286
- Fix for posting wrong duration P0D on consumables RevenueCat#289
- Added a sample watchOS app to illustrate how to integrate in-app purchases on watchOS with RevenueCat RevenueCat#263
- Fixed build warnings from Clang Static Analyzer RevenueCat#265
- Added StoreKit Configuration files for local testing + new schemes configured to use them. RevenueCat#267 RevenueCat#270
- Added GitHub Issue Templates RevenueCat#269
- Added
proxyKey
, useful for kids category apps, so that they can set up a proxy to send requests through. Do not use this unless you've talked to RevenueCat support about it. RevenueCat#258 - Added
managementURL
to purchaserInfo. This provides an easy way for apps to create Manage Subscription buttons that will correctly redirect users to the corresponding subscription management page on all platforms. RevenueCat#259 - Extra fields sent to the post receipt endpoint:
normal_duration
,intro_duration
andtrial_duration
. These will feed into the LTV model for more accurate LTV values. RevenueCat#256 - Fixed a bug where if the
appUserID
was not found inNSUserDefaults
andcreateAlias
was called, the SDK would create an alias to(null)
. RevenueCat#255 - Added mParticle as an option for attribution. RevenueCat#251
- Fixed build warnings for Mac Catalyst RevenueCat#247
- Simplified Podspec and minor cleanup RevenueCat#248
- Fixed version numbers that accidentally included the
-SNAPSHOT
suffix
- Reorganized file system structure for the project RevenueCat#242
- New headers for observer mode and platform version RevenueCat#237 RevenueCat#240 RevenueCat#241
- Fixes subscriber attributes migration edge cases RevenueCat#233
- Autodetect appUserID deletion RevenueCat#232 RevenueCat#236
- Removes old trello link RevenueCat#231
- Removes unused functions RevenueCat#228
- Removes unnecessary no-op call to RCBackend's postSubscriberAttributes RevenueCat#227
- Fixes a bug where subscriber attributes are deleted when an alias is created. RevenueCat#222
- Fixes crash when payment.productIdentifier is nil RevenueCat#226
- Updates invalidatePurchaserInfoCache docs RevenueCat#223
- Fixed build warnings about nil being passed to callees that require non-null parameters RevenueCat#216
- Fixed build warnings on tvOS and API availability checks RevenueCat#212
- Added support for WatchOS and tvOS, fixed some issues with pre-processor macro checks on different platforms. RevenueCat#183
- Added an extra method,
setPushTokenString
, to be used by multi-platform SDKs that don't have direct access to the push token asNSData *
, but rather asNSString *
. RevenueCat#208
-
small fixes to docs and release scripts:
- the release script was referencing a fastlane lane that was under the group ios, so it needs to be called with ios first
- the docs for setPushToken in RCPurchases.m say to pass an empty string or nil to erase data, however since the param is of type NSData, you can't pass in an empty string.
- Added Subscriber Attributes, which allow developers to store additional, structured information for a user in RevenueCat. More info: // More info: https://docs.revenuecat.com/docs/user-attributes. RevenueCat#196
- Fixed an issue where the completion block of
purchaserInfoWithCompletion
would get called more than once if cached information existed and was stale. RevenueCat#199 - Exposed
original_purchase_date
, which can be useful for migrating data for developers who don't increment the build number on every release and therefore can't rely on it being different on all releases. - Addressed a couple of build warnings: RevenueCat#200
- Fixed an issue where Swift Package Manager didn't pick up the new Caching group from 3.0.3 RevenueCat#176
- Added new method to invalidate the purchaser info cache, useful when promotional purchases are granted from outside the app. RevenueCat#168
- Made sure we dispatch offerings, and purchaser info RevenueCat#146
- Fixes an issue where Apple Search Ads attribution information would be sent even if the user hadn't clicked on a search ad.
- Adds observer_mode to the backend post receipt call.
- Support for new Offerings system.
- Deprecates
makePurchase
methods. Replaces withpurchasePackage
- Deprecates
entitlements
method. Replaces withofferings
- See our migration guide for more info: https://docs.revenuecat.com/v3.0/docs/offerings-migration
- Added
Purchases.
prefix to Swift classes to avoid conflicts RevenueCat#131 - Enabled base internationalisation to silence a warning (#119)
- Migrates tests to Swift 5 (#138)
- New identity changes (#133):
- The
.createAlias()
method is no longer required, use .identify() instead .identify()
will create an alias if being called from an anonymous ID generated by RevenueCat- Added an
isAnonymous
property toPurchases.shared
- Improved offline use
- The
- Support for Swift Package Manager
- Adds a conditional to protect against nil products or productIdentifier (RevenueCat#129)
- Deprecates
activeEntitlements
inRCPurchaserInfo
and addsentitlements
object toRCPurchaserInfo
. For more info look into https://docs.revenuecat.com/docs/purchaserinfo
- BREAKING CHANGE: fixed a typo in
addAttributionData
Swift's name. - Error logs for AppsFlyer if using deprecated
rc_appsflyer_id
- Error logs for AppsFlyer if missing networkUserID
- BUGFIX:
userId
parameter in identify is not nullable anymore. - DEPRECATION:
automaticAttributionCollection
is now deprecated in favor ofautomaticAppleSearchAdsAttributionCollection
since it's a more clear name. - NEW FEATURE: UIKitForMac support.
- NEW FEATURE: Facebook Ads Attribution support https://docs.revenuecat.com/docs/facebook-ads.
addAttribution
is now a class method that can be called before the SDK is configured.addAttribution
will automatically add therc_idfa
andrc_idfv
parameters if theAdSupport
andUIKit
frameworks are included, respectively.- A network user identifier can be send to the
addAttribution
function, replacing the previousrc_appsflyer_id
parameter. - Apple Search Ad attribution can be automatically collected by setting the
automaticAttributionCollection
boolean totrue
before the SDK is configured. - Adds an optional configuration boolean
observerMode
. This will set the value offinishTransactions
at configuration time. - Header updates to include client version which will be used for debugging and reporting in the future.
- Adds subscription offers
- Avoid refreshing receipt everytime restore is called
- Adds userCancelled as a parameter to the completion block of the makePurchase function.
- Better error codes.
- Refactor to all block based methods
- Optional delegate method to receive changes in Purchaser Info
- Ability to turn on detailed logging by setting
debugLogsEnabled
- Adds support for Tenjin
- Singleton management handled by the SDK
- Adds reset, identify and create alias calls
- Conform RCPurchasesDelegate to NSObject
- Adds requestDate to the purchaser info to avoid edge cases
- Add iOS 11.2 availability annotations
- Make RCPurchases initializer return a non-optional
- Add option for disabling transaction finishing.
- Fix to ensure prices are properly collected when using entitlements
- Delegate methods now only dispatch if they are not on the main thread. This makes sure the cached PurchaserInfo is delivered on setting the delegate.
- Allow developer to indicate anonymous ID behavior
- Add "Purchases.h" to CocoaPods headers
- Attribution! You can now pass attribution data from Apple Search Ads, AppsFlyer, Adjust and Branch. You can then view the ROI of your campaigns, including revenue coming from referrals.
- Fix for entitlements will now have null active products if the product is not available from StoreKit
- Fix version number in Plist for real
- Fix version number in Plist
- Improved error handling for fetching entitlements
- Delegate methods are now guaranteed to run on the main thread
- Fix a bug with parsing dates for Thai locales
- Oh my oh whoa! We made it to version one point oh!
- Entitlements now supported by the SDK. See the guide for more info.
- Improved caching of
RCPurchaserInfo
- Remove Carthage dependencies
- Add delegate methods for restoring
- Allow RCPurchases to be instantiated with a UserDefaults object, useful for syncing between extensions
- RCPurchases now caches the most recent RCPurchaserInfo. Apps no longer need to implement there own offline caching of subscription status.
- Change block based methods to use delegate. restoreTransactions and updatePurchaserInfo no longer take blocks. This means all new RCPurchaserInfo objects will be sent via the delegate methods.
- macOS support. Purchases now works with macOS. Contact [email protected] if interested in beta testing.
- Workaround for a StoreKit issue (38476489) where priceLocale is missing on promotional purchases
- Fix cache preventing prices from being posted
- Prevent race conditions refreshing receipts.
- Make processing of multiple receipt posts more efficient.
- Add support for original application version so users can be grandfathered easily
- Add support of checking eligibilty of introductory prices. RevenueCat will now be able to tell you definitively what version of a product you should present in your UI.
- Add support of initializing without an
appUserID
. This standardizes and simplifies behavior for apps without account systems.
- Change
restoreTransactionsForAppStoreAccount:
to take a completion block since it no long relies on the app store queue. Removed delegate methods. - Added
updatedPurchaserInfo:
that allows force refreshing ofRCPurchaserInfo
. Useful if your app needs the latest purchaser info. - Removed
makePurchase:quantity:
. - Add
nonConsumablePurchases
onRCPurchaserInfo
. Non-consumable purchases will now Just Work (tm).
- Add support for promotional purchases.
- Adds support for
appUserId
s with non-url compatable characters
- Add support for restoring purchases via
restoreTransactionsForAppStoreAccount
- Add support for iOS 9.0
- Add tracking of product prices to allow for real time revenue tracking on RevenueCat.com
- Improve handling of Apple and Backend errors
- Handles missing receipts case
- Fixed issue with timezone parsing
- Rename shared secret to API key
- Remove
purchaserInfoWithCompletion
, nowRCPurchases
fetches updated purchaser info automatically onUIApplicationDidBecomeActive
. - Remove
purchasing
KVO property
- Initial version
- Requires access to the private beta, email [email protected] for a key.