Skip to main content
SDK

Cordova 3.1.0

Cordova 3.1.0
RC Support
RevenueCat Staff
Forum|alt.badge.img+3

3.1.0

Purchases.configure has been deprecated in favor of Purchases.configureWith, which accepts a PurchasesConfiguration object.

Purchases.configure("api_key", "user_id", true, "user.defaults.suite.name")

has been replaced with:

Purchases.configureWith({
    apiKey: "api_key",
    appUserID: "user_id",
    observerMode: true,
    userDefaultsSuiteName: "user.defaults.suite.name",
});

This allows for more flexibility since some configuration parameters arguments can now be omitted so the defaults are used. For example:

Purchases.configureWith({
    apiKey: "api_key",
    appUserID: "user_id",
    userDefaultsSuiteName: "user.defaults.suite.name",
});

Or:

Purchases.configureWith({
    apiKey: "api_key",
    observerMode: true,
});

Amazon Appstore Support

We have introduced support for using the Amazon Appstore. We have extensively tested this, and there are some apps using our pre-release Amazon versions in production.

However, we have found some inconsistencies in the way Amazon Appstore prices are reported. We are actively working on patching these inconsistencies.

Please help us help you by reporting any issues you find. New RevenueCat Issue.

You can enable Amazon Appstore support by configuring the SDK using the new configureWith function:

Purchases.configureWith({
    apiKey: "amazon_specific_api_key",
    useAmazon: true,
});

For more information around configuration please take a look at the Amazon Appstore section in our docs. The official Amazon In-App Purchasing docs also contains very valuable information, especially around testing and best practices.

Other Changes

  • Update orb to fix deploys (#200) via Cesar de la Vega (@vegaro)
  • Update fastlane plugin (#199) via Cesar de la Vega (@vegaro)
  • configure has been deprecated in favor of configureWith, which accepts a PurchasesConfiguration object (#110) via Cesar de la Vega (@vegaro)

To view new release, visit https://github.com/RevenueCat/cordova-plugin-purchases/releases/tag/3.1.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