Skip to content

Releases: RevenueCat/purchases-flutter

6.29.2

22 May 17:23
Compare
Choose a tag to compare

Bugfixes

Dependency Updates

6.29.1

16 May 12:11
Compare
Choose a tag to compare

Bugfixes

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.6.2 (#1067) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • Remove SafeArea in sample in paywall.dart (#1063) via Cesar de la Vega (@vegaro)
  • Migration to applying Gradle plugins with the declarative plugins block in sample (#1062) via Cesar de la Vega (@vegaro)

6.29.0

30 Apr 21:28
574679a
Compare
Choose a tag to compare

Bugfixes

  • Crash on Amazon paywalls after purchasing (#1053) via Cesar de la Vega (@vegaro)

Dependency Updates

Other Changes

  • Add trigger_bump lane (#1058) via Cesar de la Vega (@vegaro)

6.28.0

25 Apr 12:17
Compare
Choose a tag to compare

Dependency Updates

6.27.0

18 Apr 08:48
Compare
Choose a tag to compare

Bugfixes

  • Fix touches passing through paywall when using presentPaywall methods (#1044) via Toni Rico (@tonidero)
  • Remove macos platform support in purchases_ui_flutter (#1041) via Cesar de la Vega (@vegaro)

Dependency Updates

6.26.0

10 Apr 19:49
Compare
Choose a tag to compare

Dependency Updates

6.25.0

02 Apr 07:19
Compare
Choose a tag to compare

Dependency Updates

6.24.0

14 Mar 16:43
Compare
Choose a tag to compare

New Features

  • Add onDismiss handler and displayCloseButton to PaywallView and PaywallFooterView (#1009) via Toni Rico (@tonidero)
  • Add PaywallFooterView listeners (#1012) via Toni Rico (@tonidero)
  • Add PaywallView listeners (#995) via Cesar de la Vega (@vegaro)

Bugfixes

Dependency Updates

Other Changes

  • Add 5.8.2 to changelog (#1011) via Cesar de la Vega (@vegaro)
  • Add dependency_overrides to purchases_flutter_ui (#1007) via Cesar de la Vega (@vegaro)

5.8.2

08 Mar 10:28
Compare
Choose a tag to compare

Dependency Updates

7.0.0-beta.1

07 Mar 12:22
Compare
Choose a tag to compare
7.0.0-beta.1 Pre-release
Pre-release

We have opened a channel in our Discord server for participants in the Beta to ask questions and give feedback: https://discord.gg/wXEfBGem5n.

iOS Updates

StoreKit 2

Version 7.0 of the RevenueCat SDK enables full StoreKit 2 flow on the SDK and the RevenueCat backend by default.

We have been testing StoreKit 2 support in parallel to StoreKit 1 in our backend for a while and we believe it is ready for widespread use.

Here's some of the benefits you get with StoreKit 2:

  • Better handling of a few specific edge cases which were unfixable with StoreKit 1:
  • No more "Missing receipt" errors in Sandbox that could result in failure restoring purchases or getting trial eligibility status "unknown".
  • No more "The purchased product was missing in the receipt" error that could cause an invalid receipt error when making a purchase.
  • Future proofing: StoreKit 1 APIs are being progressively deprecated by Apple, and new features are being added to StoreKit 2.

In order to use StoreKit 2, you will need to configure your In-App Purchase Key in the RevenueCat dashboard.

The previously deprecated configuration option usesStoreKit2IfAvailable has been removed. Remove it from your configuration option to continue using StoreKit 2.

The SDK will automatically use StoreKit 1 where StoreKit 2 is not supported, in iOS 14 and earlier.

If for any reason you need to always use StoreKit 1, it is possible to switch back using the following configuration API:

await Purchases.configure(
    PurchasesConfiguration('api_key')
    ..storeKitVersion = StoreKitVersion.storeKit1,
);

3rd Party Analytics SDKs

If you are using any 3rd party analytics SDKs to automatically track in-app purchases, you need to be aware most of them do not completely support logging purchases made with StoreKit 2. This is the case for some popular SDKs like Facebook, Mixpanel, OneSignal, Segment or Firebase. For these services, we recommend you use our data integrations.

If you're using the Firebase SDK, you'll need to follow these instructions to log purchases made with StoreKit 2.

Observer Mode

Version 7.0 of the SDK introduces support for observer mode when making purchases with StoreKit 2. You can enable it when configuring the SDK:

await Purchases.configure(
    PurchasesConfiguration('api_key')
    ..storeKitVersion = StoreKitVersion.storeKit2,
    ..observerMode = true,
);

Additionally, because of the way in which StoreKit 2 operates, you must manually handle newly purchased transactions by calling Purchases.handleObserverModeTransaction(). Subscription updates will be automatically tracked.

# Your existing code to purchase a product with ID "product_id"
await purchaseProduct("product_id")

# Inform the SDK about the new purchase
await Purchases.handleObserverModeTransaction("product_id");

If you're using observer mode with StoreKit 1, you will need to explicitly configure the SDK to use StoreKit 1:

await Purchases.configure(
    PurchasesConfiguration('api_key')
    ..storeKitVersion = StoreKitVersion.storeKit1,
    ..observerMode = true,
);

Original Application Version

If you're converting a paid app to in-app subscriptions, and want to provide existing customers with certain features, we recommend using the "original app version" field in customer info.

Because of a limitation of StoreKit 2, this field is not available. If this is a requirement for you, we recommend switching back to StoreKit 1.

Deployment Target

The minimum target has been raised to iOS 13.0 and macOS 10.15.

Other Changes