Skip to main content
Solved

SwiftUI Paywall - event handling block support?


Forum|alt.badge.img+3

Hi,

 

I just started looking into RevenueCat and had a question regarding the Paywall feature.

Is there a way to set event handlers to the paywall so that we can detect

  1. User cancelled
  2. Purchase Successful
  3. Error

We currently have analytics around these events and would like to retain the behavior. We can migrate our existing paywall to use the purchase API directly. However, Paywall seems to provide an easy way for us to experiment with different designs..etc.

 

This should be relatively easy to implement. Can it be added?

Best answer by wes_clark

Hi! Event handlers for cancellations and errors are not currently available, but I have gone ahead and shared this feedback with the product team. 

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

3 replies

Forum|alt.badge.img+3
  • Author
  • New Member
  • 3 replies
  • December 14, 2023

Found onPurchaseCompleted and onRestoreCompleted view modifiers. I think these should at least tell me when it completes a purchase.


wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 235 replies
  • Answer
  • December 15, 2023

Hi! Event handlers for cancellations and errors are not currently available, but I have gone ahead and shared this feedback with the product team. 


Forum|alt.badge.img+3
  • Author
  • New Member
  • 3 replies
  • December 19, 2023

Thanks!


Reply


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