Skip to content

Android: Support for viewing and purchasing Google Play offers for one-time products #1883

Description

@antonyaiwin

Description

Google Play supports multiple offers for one-time (INAPP) products, but this functionality is currently not exposed through RevenueCat's Flutter SDK.

A corresponding implementation is being proposed for purchases-android to support retrieving, selecting, and purchasing Google Play one-time product offers.

The Flutter SDK should expose this functionality once the underlying Android SDK support is available.

Expected behavior

For a Google Play one-time product, the Flutter SDK should provide a way to:

  1. Retrieve the available one-time product offers.
  2. Access the relevant offer information.
  3. Select a specific one-time product offer.
  4. Initiate a purchase using the selected offer.
  5. Initiate a purchase with the best offer when no specific offer is selected.

Use case

A Google Play one-time product may have multiple offers, for example:

  • Regular price: $99
  • Offer price: $39

A Flutter application should be able to retrieve the available offers, display the appropriate localized offer price, allow the user/application to select an offer, and purchase the product using that offer.

Android dependency

Support for one-time product offers is being implemented in purchases-android draft pr RevenueCat/purchases-android#4158.

The Proposed Android implementation introduces:

  • OneTimePurchaseOfferDetails
  • OneTimePurchaseOfferDetailsList
  • GoogleOneTimePurchaseOfferDetails
  • Default offer selection
  • Explicit offer selection through PurchaseParams
  • Passing the selected offerToken to Google Play Billing

Related Android issue:

Motivation

Without Flutter support, Flutter applications cannot use Google Play's one-time product offer functionality through RevenueCat.

Applications would otherwise need to bypass RevenueCat and interact directly with Google Play Billing, which introduces additional complexity around purchase processing and entitlement handling.

Requested support

Add Flutter support for the one-time product offer functionality being introduced in purchases-android, including retrieving available offers and providing a supported way to select an offer when purchasing a product.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions