Skip to content

Releases: RevenueCat/cordova-plugin-purchases

4.4.1

27 Jul 09:33
Compare
Choose a tag to compare

Dependency Updates

4.4.0

25 Jul 11:56
Compare
Choose a tag to compare

Dependency Updates

4.3.0

13 Jul 21:08
Compare
Choose a tag to compare

Bugfixes

  • presentCodeRedemptionSheet: disabled on Catalyst (#381) via NachoSoto (@NachoSoto)

Dependency Updates

4.2.3

28 Jun 17:41
Compare
Choose a tag to compare

Dependency Updates

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

4.2.2

27 Jun 21:35
Compare
Choose a tag to compare

Dependency Updates

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

4.2.1

26 Jun 15:09
37bad14
Compare
Choose a tag to compare

Dependency Updates

4.2.0

23 Jun 20:17
Compare
Choose a tag to compare

Dependency Updates

4.1.0

22 Jun 09:02
Compare
Choose a tag to compare

Bugfixes

Dependency Updates

4.0.0

12 Jun 16:32
Compare
Choose a tag to compare

RevenueCat Purchases Cordova v4 is here!! 😻

This latest release updates the Android SDK dependency from v5 to v6 to use BillingClient 5. This version of BillingClient brings an entire new subscription model which has resulted in large changes across the entire SDK.

Migration Guides

  • See Android Native - 5.x to 6.x Migration for a more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take advantage of it in V6. This guide includes tips on product setup with the new model.

New SubscriptionOption concept

Purchasing

In v3, a Google Play Android Package or StoreProduct represented a single purchaseable entity, and free trials or intro offers would automatically be applied to the purchase if the user was eligible.

Now, in Cordova v4, an Google Play Android Package or StoreProduct represents a duration of a subscription and contains all the ways to purchase that duration -- any offers and its base plan. Each of these purchase options are SubscriptionOptions.
When passing a Package to purchasePackage() or StoreProduct to purchaseStoreProduct(), the SDK will use the following logic to choose which SubscriptionOption to purchase:

  • Filters out offers with "rc-ignore-offer" tag
  • Uses SubscriptionOption with the longest free trial or cheapest first phase
    • Only offers the user is eligible will be applied
  • Falls back to base plan

For more control, purchase subscription options with the new purchaseSubscriptionOption() method.

Models

StoreProduct now has a few new properties use for Google Play Android:

  • defaultOption
    • A subscription option that will automatically be applied when purchasing a Package or StoreProduct
  • subscriptionOptions
    • A list of subscription options (could be null)

Observer Mode

Observer mode is still supported in v4. Other than updating the SDK version, there are no changes required.

Offline Entitlements

✨ With this new feature, even if our main and backup servers are down, the SDK can continue to process purchases. This is enabled transparently to the user, and when the servers come back online, the SDK automatically syncs the information so it can be visible in the dashboard.

Offering Metadata

✨ Metadata allows attaching arbitrary information as key/value pairs to your Offering to control how to display your products inside your app. The metadata you configure in an Offering is available from the RevenueCat SDK. For example, you could use it to remotely configure strings on your paywall, or even URLs of images shown on the paywall.

See the metadata documentation for more info!

4.0.0-rc.1

07 Jun 22:59
Compare
Choose a tag to compare
4.0.0-rc.1 Pre-release
Pre-release

The first release candidate of RevenueCat Purchases Cordova v4 is here!! 😻

This latest release updates the Android SDK dependency from v5 to v6 to use BillingClient 5. This version of BillingClient brings an entire new subscription model which has resulted in large changes across the entire SDK.

Migration Guides

  • See Android Native - 5.x to 6.x Migration for a
    more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take
    advantage of it in V6. This guide includes tips on product setup with the new model.

New SubscriptionOption concept

Purchasing

In v3, a Google Play Android Package or StoreProduct represented a single purchaseable entity, and free trials or intro
offers would automatically be applied to the purchase if the user was eligible.

Now, in Cordova v4, an Google Play Android Package or StoreProduct represents a duration of a subscription and contains all the ways to
purchase that duration -- any offers and its base plan. Each of these purchase options are SubscriptionOptions.
When passing a Package to purchasePackage() or StoreProduct to purchaseStoreProduct(), the SDK will use the following logic to choose which
SubscriptionOption to purchase:

  • Filters out offers with "rc-ignore-offer" tag
  • Uses SubscriptionOption with the longest free trial or cheapest first phase
    • Only offers the user is eligible will be applied
  • Falls back to base plan

For more control, purchase subscription options with the new purchaseSubscriptionOption() method.

Models

StoreProduct now has a few new properties use for Google Play Android:

  • defaultOption
    • A subscription option that will automatically be applied when purchasing a Package or StoreProduct
  • subscriptionOptions
    • A list of subscription options (could be null)

Observer Mode

Observer mode is still supported in v4. Other than updating the SDK version, there are no changes required.

New Features