Skip to content

Releases: RevenueCat/cordova-plugin-purchases

6.0.0

19 Aug 16:05
Compare
Choose a tag to compare

Caution

When upgrading to v6, you must configure your In-App Purchase Key in the RevenueCat dashboard. Purchases on iOS will fail if the key is not configured.

This release updates the Android SDK dependency from v7 to v8 to use BillingClient 7 and updates the iOS SDK dependency from v4 to v5 to use StoreKit 2 by default in the SDK.

Migration Guides

New Minimum OS Versions

This release raises the minumum required OS versions to the following:

  • iOS 13.0
  • tvOS 13.0
  • watchOS 6.2
  • macOS 10.15
  • Android: SDK 21 (Android 5.0)

In-App Purchase Key Required for StoreKit 2

In order to use StoreKit 2, you must configure your In-App Purchase Key in the RevenueCat dashboard. You can find instructions describing how to do this here.

usesStoreKit2IfAvailable is now storeKitVersion

When configuring the SDK, the usesStoreKit2IfAvailable parameter has been replaced by an optional storeKitVersion: STOREKIT_VERSION parameter. It defaults to letting the iOS SDK determine the most appropriate version of StoreKit at runtime. If you'd like to use a specific version of StoreKit, you may provide a value for storeKitVersion like so:

Purchases.configureWith({
    apiKey,
    storeKitVersion: STOREKIT_VERSION.STOREKIT_1,
});

Observer Mode is now PurchasesAreCompletedBy

Version 6.0 of the SDK deprecates the term "Observer Mode" (and the APIs where this term was used), and replaces it with PurchasesAreCompletedBy (either RevenueCat or your app). When specifying that your app will complete purchases, you must provide the StoreKit version that your app is using to make purchases on iOS. If your app is only available on Android, you may provide any value since the native Android SDK ignores this value.

You can enable it when configuring the SDK:

Purchases.configure({
    apiKey,
    purchasesAreCompletedBy: {a
	type: PURCHASES_ARE_COMPLETED_BY_TYPE.MY_APP,
        storeKitVersion: STOREKIT_VERSION.STOREKIT_2,
    },
});

⚠️ Observing Purchases Completed by Your App on macOS

By default, when purchases are completed by your app using StoreKit 2 on macOS, the SDK does not detect a user's purchase until after the user foregrounds the app after the purchase has been made. If you'd like RevenueCat to immediately detect the user's purchase, call Purchases.recordPurchase(productID) for any new purchases, like so:

Purchases.recordPurchase(productID, (transaction: PurchasesStoreTransaction) => {}, (error: PurchasesError) => {});

Observing Purchases Completed by Your App with StoreKit 1

If purchases are completed by your app using StoreKit 1, you will need to explicitly configure the SDK to use StoreKit 1:

Purchases.configure({
    apiKey,
    purchasesAreCompletedBy: {a
        type: PURCHASES_ARE_COMPLETED_BY_TYPE.MY_APP,
        storeKitVersion: STOREKIT_VERSION.STOREKIT_1,
    },
});

Dependency Updates

  • Bump xcodeproj from 1.24.0 to 1.25.0 (#566) via dependabot[bot] (@dependabot[bot])
  • Bump danger from 9.4.3 to 9.5.0 (#563) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.221.1 to 2.222.0 (#558) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.221.0 to 2.221.1 (#548) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.220.0 to 2.221.0 (#546) via dependabot[bot] (@dependabot[bot])

Other Changes

Full migration guide to V6: Cordova Plugin purchases - V6 API Migration Guide

5.7.8

13 Jun 09:22
Compare
Choose a tag to compare

Dependency Updates

Other Changes

  • Update RELEASING.md (#511) via Cesar de la Vega (@vegaro)
  • Fix cordova ios integration tests (#542) via Toni Rico (@tonidero)

5.7.7

06 Jun 09:28
c8c4ba7
Compare
Choose a tag to compare

Dependency Updates

Other Changes

  • Update fastlane plugin (#535) via Toni Rico (@tonidero)
  • Only update docs index on latest stable releases (#525) via Toni Rico (@tonidero)

5.7.6

18 Apr 08:45
Compare
Choose a tag to compare

Dependency Updates

5.7.5

11 Apr 07:48
Compare
Choose a tag to compare

Dependency Updates

  • Bump fastlane from 2.219.0 to 2.220.0 (#521) via dependabot[bot] (@dependabot[bot])
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 10.4.0 (#522) via RevenueCat Git Bot (@RCGitBot)

5.7.4

02 Apr 07:15
Compare
Choose a tag to compare

Dependency Updates

Other Changes

  • Add 4.9.1 to changelog (#510) via Cesar de la Vega (@vegaro)

4.9.1

08 Mar 16:14
Compare
Choose a tag to compare

Dependency Updates

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

5.7.3

07 Mar 03:35
Compare
Choose a tag to compare

Dependency Updates

5.7.2

15 Feb 11:05
Compare
Choose a tag to compare

Dependency Updates

5.7.1

06 Feb 19:29
Compare
Choose a tag to compare

Dependency Updates