RevenueCat Unity SDK v4 is here!!
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 RevenueCatAPIKeyAmazon
field.
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 contain very valuable information, especially around testing and best practices.
⚠️ ⚠️ Important ⚠️ ⚠️ In order to use Unity IAP < 4.4.0 with RevenueCat in Observer mode,
you need to use the Purchases-UnityIAP.unityPackage
. For Unity IAP >= 4.4.0, you can use the Purchases.unitypackage
package.
For Amazon installation instructions please follow take a look at the Amazon instructions document
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
.revenueCatAPIKey
has been removed in favor ofrevenueCatAPIKeyApple
,revenueCatAPIKeyGoogle
andrevenueCatAPIKeyAmazon
.
Renamed APIs
3.x | 4.0.0 |
---|---|
PurchaserInfo |
CustomerInfo |
Transaction |
StoreTransaction |
Product |
StoreProduct |
PaymentDiscount |
PromotionalOffer |
Purchases.RestoreTransactions |
Purchases.RestorePurchases |
Purchases.GetPaymentDiscount |
Purchases.GetPromotionalOffer |
Purchases.UpdatedPurchaserInfoListener |
Purchases.UpdatedCustomerInfoListener |
Discount.identifier |
Discount.Identifier |
Discount.price |
Discount.Price |
Discount.priceString |
Discount.PriceString |
Discount.cycles |
Discount.Cycles |
Discount.period |
Discount.Period |
Discount.unit |
Discount.Unit |
Discount.periodUnit |
Discount.PeriodUnit |
Discount.periodNumberOfUnits |
Discount.PeriodNumberOfUnits |
Error.message |
Error.Message |
Error.code |
Error.Code |
Error.underlyingErrorMessage |
Error.UnderlyingErrorMessage |
Error.readableErrorCode |
Error.ReadableErrorCode |
New APIs
- Introduced the ability to configure the SDK programmatically through calling
Configure
https://github.com/RevenueCat/purchases-unity/pull/125
Other
- Added docstrings for most public entities. https://github.com/RevenueCat/purchases-unity/pull/131, https://github.com/RevenueCat/purchases-unity/pull/130, https://github.com/RevenueCat/purchases-unity/pull/128
To view new release, visit https://github.com/RevenueCat/purchases-unity/releases/tag/4.0.0