Skip to main content
Question

Restore Purchases not working with RevenueCatUI – onRestoreCompleted modifier not triggering


Forum|alt.badge.img

I’m using RevenueCatUI and have configured the restore button action correctly in the RevenueCat dashboard. It used to work fine, but recently the onRestoreCompleted modifier is no longer being triggered when I tap the restore button that i configured remotely

 

Here’s the code:
PaywallView(displayCloseButton: false)

    .ignoresSafeArea()

    .onAppear {

        print("paywall onAppear")

    }

    .onDisappear {

        print("paywall onAppear")

    }

    .onPurchaseStarted { package in

        print("onPurchaseStarted")

    }

    .onPurchaseCompleted { transaction, customerInfo in

        print("onPurchaseCompleted")

    }

    .onPurchaseCancelled {

        print("onPurchaseCancelled")

    }

    .onPurchaseFailure { error in

        print("Purchase failed with error: \(error)")

    }

    .onRestoreStarted {

        print("Restore started")

    }

    .onRestoreCompleted { customerInfo in

        print("Restore completed, checking subscription status")

    }

    .onRestoreFailure { error in

        print("Restore failed with error: \(error)")

    }

 

Here’s the Console output:


paywall onAppear

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 593 replies
  • June 4, 2025

Hi, can you please share with me the SDK version you are using, the code for your restore purchase button, as well as full RevenueCat debug logs for this? You can enable them following our guide here and as this may contain sensitive information I recommend submitting this information via a support ticket here.


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • June 9, 2025

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