Skip to main content
SDK

iOS 4.0.0

  • February 25, 2022
  • 0 replies
  • 109 views
iOS 4.0.0
RC Support
RevenueCat Staff
Forum|alt.badge.img+3

RevenueCat iOS SDK v4 is here!!

Dancing cats

Full Changelog

Migration Guide

  • 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.

API changes:

There have been a lot of changes since v3!

Here are the highlights:

Async / Await alternative APIs

New async / await alternatives for all APIs that have completion blocks, as well as an AsyncStream for CustomerInfo.

New types and cleaned up naming

New types that wrap StoreKit's native types, and we cleaned up the naming of other types and methods for a more consistent experience.

New APIs for Customer Support

You can now use showManageSubscriptions() and beginRefundRequest() to help your users manage their subscriptions right from the app.

Rewritten in Swift

We rewrote the SDK in 100% Swift. This made the code more uniform and easy to maintain, and helps us better support StoreKit 2.

StoreKit 2 Support [Beta]

[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.

Full API changes list

Documentation:

We built a new Documentation site with Docc with cleaner and more detailed docs.
The new documentation can be found here.

To view new release, visit https://github.com/RevenueCat/purchases-ios/releases/tag/4.0.0

This post has been closed for comments

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings