Skip to content

[in_app_purchase][iOS] Consider adding support for offerCodeRedemption(isPresented:onCompletion:) #162914

Description

@osennatl

Use case

At the moment, the in-app purchase package supports showing an offer code redemption sheet on iOS by providing a wrapper method. Underneath, the native method presentCodeRedemptionSheet() is used. On top of being deprecated, that method does not provide any feedback around whether the redemption was successful, failed or was simply aborted.

This makes implementing offer codes in Flutter quite hard - especially because offer codes do not trigger the app's purchase handler listener (Apple rather sends a server notification only).

Since iOS 16 however, there is a new method offerCodeRedemption(isPresented:onCompletion:) which does report back on success or failure.

It would be great if that method was provided access to via wrapper in Flutter / the in_app_purchase package.

Proposal

Add support for calling the native offerCodeRedemption(isPresented:onCompletion:) method in the in_app_purchase package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions