showPriceConsentIfNeeded method
Shows the price consent sheet if the user has not yet responded to a subscription price change.
Use this function when you have registered a SKPaymentQueueDelegateWrapper
(using the setDelegate method) and returned false
when the
SKPaymentQueueDelegateWrapper.shouldShowPriceConsent()
method was called.
See documentation of StoreKit's -[SKPaymentQueue showPriceConsentIfNeeded]
.
Implementation
Future<void> showPriceConsentIfNeeded() async {
await channel
.invokeMethod<void>('-[SKPaymentQueue showPriceConsentIfNeeded]');
}