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.
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.