purchases-unity

Unity in-app purchases and subscriptions made easy.

MIT License

Stars
91
Committers
20

Bot releases are visible (Hide)

purchases-unity - 6.6.1

Published by RCGitBot 10 months ago

Dependency Updates

  • Bump danger from 9.4.0 to 9.4.1 (#378) via dependabot[bot] (@dependabot[bot])
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.1.1 (#381) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 6.6.0

Published by RCGitBot 11 months ago

Dependency Updates

purchases-unity - 6.5.0

Published by RCGitBot 11 months ago

New Features

  • Adds isConfigured (#375) via Cesar de la Vega (@vegaro)

Bugfixes

  • Fix isAnonymous in iOS (#376) via Cesar de la Vega (@vegaro)
purchases-unity - 6.4.0

Published by RCGitBot 11 months ago

New Features

  • Trusted entitlements: Add support for trusted entitlements (#370) via Toni Rico (@tonidero)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 8.0.0 (#371) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.4.0 (#369) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • CI: disable prepare-next-version (#367) via NachoSoto (@NachoSoto)
purchases-unity - 6.3.1

Published by RCGitBot 11 months ago

Dependency Updates

  • Bump fastlane from 2.216.0 to 2.217.0 (#365) via dependabot[bot] (@dependabot[bot])
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.3.3 (#363) via RevenueCat Git Bot (@RCGitBot)
  • Bump danger from 9.3.2 to 9.4.0 (#364) via dependabot[bot] (@dependabot[bot])
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.3.2 (#361) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.3.1 (#357) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 3.5.4

Published by NachoSoto 11 months ago

Update purchases-ios to version 3.14.4

purchases-unity - 6.3.0

Published by RCGitBot 12 months ago

Dependency Updates

purchases-unity - 6.2.0

Published by RCGitBot 12 months ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.2.0 (#351) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 7.1.1 (#350) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 6.1.0

Published by RCGitBot 12 months ago

Dependency Updates

Other Changes

  • Remove creation of special UnityIAP package (#346) via Cesar de la Vega (@vegaro)
  • Add BillingClient versions to VERSIONS table (#345) via Cesar de la Vega (@vegaro)
  • Update Unity IAP compatibility for v6 in VERSIONS.md (#344) via Cesar de la Vega (@vegaro)
  • update RELEASING file to use the latest process (#342) via Andy Boedo (@aboedo)
purchases-unity - 5.3.1

Published by RCGitBot about 1 year ago

Bug fixes

  • Add missing IntroEligibilityStatusNoIntroOfferExists (#335) via NachoSoto (@NachoSoto)
purchases-unity - 6.0.0

Published by RCGitBot about 1 year ago

RevenueCat Unity SDK v6 is here!! 😻

This latest release updates the SDK to use BillingClient 6 in Android. This version of BillingClient brings little change compared with BillingClient 5 which brought an entire new subscription model which resulted in large changes across the entire SDK.

The only modification at the API level involves replacing "ProrationMode" with "ReplacementMode". The specific replacement modes remain unchanged.

If your app doesn't currently use DEFERRED replacement modes, then you should be safe to upgrade to this version without changes in behavior.

If your app supports product changes using DEFERRED replacement mode, then you can either stick with the previous major version until support for DEFERRED is re-introduced in this major version, or you can remove DEFERRED replacement options from your app.

If you are using the SDK in observer mode, you should only use v6 in Android if you're using BillingClient 6.

See the Android Native - 6.x to 7.x Migration for more details.

If you come from an older version of the RevenueCat SDK, 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.

Bumped minimum Android SDK version

RevenueCat SDK v7 bumps minimum Android SDK version from Android 4.0 (API level 16) to Android 4.4 (API level 19).

Support for InApp Messages

We've added new APIs to support InApp messages both in Android and iOS.
You can read more about:

  • Google Play InApp Messages which will show users a snackbar message during grace period and account hold once per day and provide them an opportunity to fix their payment without leaving the app.
  • App Store InApp messages which will show a modal during grace period once per subscription.

InApp Messages are shown by default in both platforms. If you want to disable this behaviour during configuration of the RevenueCat SDK, setup the shouldShowInAppMessagesAutomatically property during configuration to false:

Purchases.PurchasesConfiguration.Builder builder = Purchases.PurchasesConfiguration.Builder.Init("api_key");
Purchases.PurchasesConfiguration purchasesConfiguration =
    builder.SetShouldShowInAppMessagesAutomatically(false)
    .Build();
purchases.Configure(purchasesConfiguration);

New Features

  • Add missing IntroEligibilityStatusNoIntroOfferExists (#335) via NachoSoto (@NachoSoto)

Dependency Updates

purchases-unity - 5.3.0

Published by RCGitBot about 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 6.3.0 (#332) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 5.2.0

Published by RCGitBot about 1 year ago

Bugfixes

  • Fix for iOS discounts not being returned (#322) via Josh Holtz (@joshdholtz)

Dependency Updates

  • Bump danger from 9.3.1 to 9.3.2 (#328) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.215.1 to 2.216.0 (#327) via dependabot[bot] (@dependabot[bot])
  • Bump fastlane from 2.214.0 to 2.215.1 (#324) via dependabot[bot] (@dependabot[bot])
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 6.2.0 (#325) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • Using Xcode 14 (#326) via NachoSoto (@NachoSoto)
purchases-unity - 5.1.4

Published by RCGitBot about 1 year ago

Dependency Updates

purchases-unity - 5.1.3

Published by RCGitBot about 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 6.1.0 (#313) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 5.1.2

Published by RCGitBot about 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 5.6.4 (#309) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 5.1.1

Published by RCGitBot about 1 year ago

Dependency Updates

purchases-unity - 5.1.0

Published by RCGitBot about 1 year ago

Dependency Updates

Bugfixes

  • Added the optional googleIsPersonalizedPrice parameter to all purchase methods.
purchases-unity - 5.0.0

Published by RCGitBot about 1 year ago

RevenueCat Purchases Unity v5 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 v4, 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 Unity v5, a 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 v5. 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!

purchases-unity - 5.0.0-alpha.2

Published by RCGitBot about 1 year ago

Bugfixes

  • [BC5] Map SubscriptionOption.PricingPhases (#298) via Josh Holtz (@joshdholtz)
  • Fix product changes and add a way to test in the Subtester app

Other Changes

  • Added buttons to purchase all SubscriptionOptions in the Subtester app
Badges
Extracted from project README
openupm
Related Projects