Bot releases are hidden (Show)
Published by tonidero almost 2 years ago
Published by aboedo about 2 years ago
EnableAdServicesAttributionTokenCollection()
to enable this integration.Published by aboedo about 2 years ago
RevenueCat Unity SDK v4 is here!!
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
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 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.
Identify
and CreateAlias
have been removed in favor of LogIn
.Reset
has been removed in favor of LogOut
.GetEntitlements
has been removed in favor of GetOfferings
.AttributionKey
and Purchases.AddAttributionData
have been removed in favor of Set<NetworkID> methods
.revenueCatAPIKey
has been removed in favor of revenueCatAPIKeyApple
, revenueCatAPIKeyGoogle
and revenueCatAPIKeyAmazon
.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 |
Configure
https://github.com/RevenueCat/purchases-unity/pull/125
Published by vegaro about 2 years ago
purchases-hybrid-common
to 3.3.0 Changelog here
purchases-android
to 5.3.0, which fixes a null pointer exception when calling configure from a thread in Android. Changelog here
Published by taquitos over 2 years ago
⚠️ ⚠️ Important ⚠️ ⚠️ Observer mode for Amazon is not supported yet.
⚠️ ⚠️ Important ⚠️ ⚠️ In order to use Unity IAP with RevenueCat in Observer mode,
you need to use the Purchases-UnityIAP.unityPackage
.
For Amazon installation instructions please follow take a look at the Amazon instructions document
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.
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 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.
Identify
and CreateAlias
have been removed in favor of LogIn
.Reset
has been removed in favor of LogOut
.GetEntitlements
has been removed in favor of GetOfferings
.AttributionKey
and Purchases.AddAttributionData
have been removed in favor of Set<NetworkID> methods
.revenueCatAPIKey
has been removed in favor of revenueCatAPIKeyApple
, revenueCatAPIKeyGoogle
and revenueCatAPIKeyAmazon
.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 |
Published by vegaro over 2 years ago
When installing this release, make sure to make a fresh installation by removing the RevenueCat folder before importing the package. That way obsolete files are deleted from your project.
Dummy.swift
to PurchasesDummy.swift
to fix collisions with other plugins that also add a Dummy.swift
file. https://github.com/RevenueCat/purchases-unity/pull/100
syncObserverModeAmazonPurchase
For Amazon installation instructions please follow take a look at the Amazon instructions document
Published by aboedo over 2 years ago
CheckTrialOrIntroductoryPriceEligibility
could prompt for login credentials on iOS if the user hasn't logged into App Store.purchases-hybrid-common
to 2.0.1
Changelog here
purchases-ios
to 3.14.1
(Changelog here)purchases-android
to 4.6.1
(Changelog here)⚠️ Note: ⚠️
This version of the SDK doesn't have support for Amazon Store. If you would like to use our SDK with Amazon Store, use the version tagged amazon-latest and follow the AMAZON-INSTRUCTIONS.md docs to get set up.
Published by vegaro over 2 years ago
syncObserverModeAmazonPurchase
to manually sync an Amazon purchase with our backend.purchases-hybrid-common
android version to 2.0.0-amazon.alpha.5.billing3.iap2purchases-hybrid-common
iOS version to 2.0.0For Amazon installation instructions please follow take a look at the Amazon instructions document
Published by aboedo over 2 years ago
Frameworks
folder in the archiveStoreKit
framework to the main targetpurchases-hybrid-common
to 2.0.0
Changelog here
purchases-ios
to 3.14.0
(Changelog here)purchases-android
to 4.6.0
(Changelog here)Published by vegaro almost 3 years ago
⚠️ ⚠️ ⚠️
We've noticed this version doesn't work properly alongside Unity IAP and we do not recommend its usage in observer mode.
⚠️ ⚠️ ⚠️
This release adds pre-release support for Amazon store. It's based off 3.2.0 since that's the latest version compatible with Unity IAP 4.1.2. Unity IAP hasn't been updated to BillingClient 4, and the latest purchases-unity version compatible with BillingClient 3 is 3.2.0
In order to be able to use this release you need an Amazon specific public key. You need to have access to the private beta of the platforms UI. Contact RevenueCat support if you want to have access.
.unitypackage
in the releaseIf Package Manager Resolver
asks to solve conflicts, choose library versions and select OK
If your app also targets the Google Play Store, you will want to conditionally exclude the BillingClient to prevent duplicated classes. If you don't have a mainTemplate.gradle
, make sure you have Custom Main Gradle Template
selected in the Android Player Settings
, which should create a mainTemplate.gradle
inside the Assets/Plugins/Android. Add the following to your mainTemplate.gradle
to prevent duplicated classes when Unity IAP is targeting the Play Store:
dependencies {
...
// ** ADD THIS **
if (!project(":unityLibrary").fileTree(dir: 'libs', include: ['billing-3*.aar']).isEmpty()) {
configurations.all {
exclude group: 'com.android.billingclient', module: 'billing'
}
}
}
Assets/External Dependency Manager/Android Resolver/Resolve
menu. This will add the right dependencies to the mainTemplate.gradle
. Your mainTemplate.gradle
should look like this (there might be more dependencies from other plugins you might use):dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Exclude billing client if it's already in the project
if (!project(":unityLibrary").fileTree(dir: 'libs', include: ['billing-3*.aar']).isEmpty()) {
configurations.all {
exclude group: 'com.android.billingclient', module: 'billing'
}
}
// Android Resolver Dependencies Start
implementation 'androidx.annotation:annotation:[1.2.0]' // Assets/RevenueCat/Plugins/Editor/RevenueCatDependencies.xml:5
implementation 'com.revenuecat.purchases:purchases-hybrid-common:[2.0.0-amazon.alpha.4.billing3.iap2]' // Assets/RevenueCat/Plugins/Editor/RevenueCatDependencies.xml:4
// Android Resolver Dependencies End
**DEPS**}
In observer mode, adding the Amazon in-app-purchasing library is not necessary since it will be added by Unity IAP when targeting the Amazon Store
Select Use Amazon in the Editor
If calling setup on runtime, you can select “Use Runtime Setup” and call setup this way.
var builder = PurchasesConfiguration.Builder.Init("amazon_specific_api_key")
.SetUseAmazon(true);
purchases.Setup(builder.Build());
Due to some limitations, RevenueCat will only validate purchases made in production or in Live App Testing and won't validate purchases made with the Amazon App Tester. You can read more about the different testing environments in our Amazon (Beta) docs.
Published by aboedo almost 3 years ago
purchases-hybrid-common
to 1.10.0
Changelog here
purchases-ios
to 3.13.0
(Changelog here)purchases-android
to 4.4.0
(Changelog here)setAirshipChannelID
Full Changelog: https://github.com/RevenueCat/purchases-unity/compare/3.4.2...3.5.0
purchases-ios
to 3.12.8purchases-android
to 4.3.3Published by vegaro about 3 years ago
Published by aboedo about 3 years ago
In this version, we’ve redesigned the way that user identification works.
Detailed docs about the new system are available here.
LogIn
, a new way of identifying users, which also returns whether a new user has been registered in the system.LogIn
uses a new backend endpoint.LogOut
, a replacement for Reset
.CreateAlias
in favor of LogIn
.Identify
in favor of LogIn
.Reset
in favor of LogOut
.SetAllowSharingStoreAccount
in favor of dashboard-side configuration.Published by beylmk over 3 years ago
Published by aboedo over 3 years ago
purchases-hybrid-common
version being used by the SDK is locked using [x.y.z]
Published by aboedo over 3 years ago
setSimulatesAskToBuyInSandbox
, that allows developers to test deferred purchases easily.