Skip to main content
Solved

Supporting SKPaymentTransactionObserver for Flutter app


Steph
Forum|alt.badge.img+9

We are interested in supporting App Store Promotion for our subscription feature and noticed saw that SKPaymentTransactionObserver method is required to process this transaction.

 

We are using Flutter with RevenueCat (and inexperienced with native iOS) and had some clarifying questions:

  1. Is shouldPurchasePromoProduct in https://docs.revenuecat.com/v3.0/docs/configuring-sdk equivalent to supporting the SKPaymentTransactionObserver?
  2. If question above is yes, does shouldPurchasePromoProduct have to be implemented on the native iOS side? Is there any recommended ways to support this in Flutter? 
  3. The documentation mentions “If your app is able to handle a purchase at the current time.”  What conditions or user states should we be aware of to know if the purchase can be handled (e.g., is it just whether we can tell our app that the user is now a subscribed user?)

 

Thanks!

Best answer by jazmine

Hey @Steph

Unfortunately we don’t have We don't support SKPaymentTransactionObserver's paymentQueue(_:shouldAddStorePayment:for:) in our Flutter SDK yet and don’t currently have a workaround. Sorry for the inconvenience, but I can let you know if the future when this behavior is supported!

View original
Did this post help you find an answer to your question?

3 replies

jazmine
Forum|alt.badge.img+7
  • Dedicated Contributor
  • 122 replies
  • Answer
  • October 14, 2021

Hey @Steph

Unfortunately we don’t have We don't support SKPaymentTransactionObserver's paymentQueue(_:shouldAddStorePayment:for:) in our Flutter SDK yet and don’t currently have a workaround. Sorry for the inconvenience, but I can let you know if the future when this behavior is supported!


Steph
Forum|alt.badge.img+9
  • Author
  • Helper
  • 24 replies
  • October 15, 2021

@jazmine Got it, thanks! To verify, would we be able to implement SKPaymentTransactionObserver in native iOS?


Forum|alt.badge.img+3
  • Contributor
  • 31 replies
  • April 18, 2022

HI @Steph good news! We added this functionality in our latest Flutter release, 3.10.0.

 

Please see the comment on our open purchases-flutter Github issue for more instructions on how to use it: https://github.com/RevenueCat/purchases-flutter/issues/341#issuecomment-1101862607


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings