Skip to content

[in_app_purchase] Add support for showPriceConsentIfNeeded method on iOS #85129

@mvanbeusekom

Description

@mvanbeusekom

Use case

The IAP iOS StoreKit wrapper wraps almost all native calls, but support for the SKPaymentQueueDelegate and showPriceConsentIfNeeded are missing. With showPriceConsentIfNeeded a developer can notify their users about a price change at a moment that is convenient. More about this can be found here).

Proposal

My proposal is to:

  • Allow developers to register a Dart implementation of the SKPaymentQueueDelegateWrapper with the current SKPaymentQueueWrapper class (this requires a new SKPaymentQueueWrapper.setDelegate(SKPaymentQueueDelegateWrapper) method);
  • Add a new showPriceConsentIfNeeded() method to the SKPaymentQueueWrapper class which binds to the native iOS counterpart.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions