RevenueCat for Cordova v3 is here!!
Updating plugin for the most recent RevenueCat frameworks released!
StoreKit 2 support
This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.
New types and cleaned up naming
New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.
Removed APIs
identify
andcreateAlias
have been removed in favor oflogIn
.reset
has been removed in favor oflogOut
.getEntitlements
has been removed in favor ofgetOfferings
.attributionKey
andPurchases.addAttributionData
have been removed in favor ofset<NetworkID> methods
.setAllowSharingStoreAccount
has been removed. Configure behavior through the RevenueCat dashboard instead.
Renamed APIs
2.x | 3.0.0 |
---|---|
PurchaserInfo |
CustomerInfo |
Purchases.getPurchaserInfo |
Purchases.getCustomerInfo |
Purchases.invalidatePurchaserInfoCache |
Purchases.invalidateCustomerInfoCache |
PurchasesTransaction |
PurchasesStoreTransaction |
PurchasesTransaction.revenueCatId |
PurchasesStoreTransaction.transactionIdentifier |
PurchasesTransaction.productId |
PurchasesStoreTransaction.productIdentifier |
PurchasesProduct |
PurchasesStoreProduct |
PurchasesProduct.intro_price (number ) |
PurchasesStoreProduct.introPrice (PurchasesIntroPrice ) |
PurchasesProduct.price_string |
PurchasesStoreProduct.priceString |
PurchasesProduct.currency_code |
PurchasesStoreProduct.currencyCode |
Purchases.restoreTransactions |
Purchases.restorePurchases |
Purchases.updatedPurchaserInfoListener |
Purchases.updatedCustomerInfoListener |
Purchases.setup |
Purchases.configure |
Bugfixes
- Configure should be called in the current thread and not in a UI thread (#193) via Cesar de la Vega (@vegaro)
New Features
- Add support for Firebase, Mixpanel, and CleverTap integrations (#177) via Joshua Liebowitz (@taquitos)
- Apple AdServices support (#167)
Other Changes
- Improve purchase tester (#186) via Andy Boedo (@aboedo)
- cordova-plugin-purchases requires Xcode 13.0+ and minimum targets iOS 11.0+ and macOS 10.13+ (#160) via NachoSoto (@NachoSoto)
- Lots of other under-the-hood improvements. For a full overview of the changes take a look at the full Changelog
To view new release, visit https://github.com/RevenueCat/cordova-plugin-purchases/releases/tag/3.0.0