Hi everyone,
I’m using @revenuecat/purchases-capacitor-ui with the RC Paywall Editor to show my subscription screen:
const { result } = await RevenueCatUI.presentPaywall();
Purchases work fine, the promise resolves.
However, when the user taps Restore Purchases button inside the paywall:
-
The restore actually happens (I see the RevenueCat webhook fire, and the user’s entitlements update in Purchases.addCustomerInfoUpdateListener).
-
But the paywall stays open because presentPaywall() never returns, it’s “stuck” waiting.
Questions:
-
Is this expected behavior for presentPaywall() after restore in the Paywall Editor? (I also tried presentPaywallIfNeeded({ ... }), but observed the same behavior.)
-
Is there a way to programmatically detect that restore finished so I can navigate away? (I coudn’t find a dismiss method in the Capacitor sdk)
Setup:
- Capacitor 7.1.0
- @revenuecat/purchases-capacitor 11.1.1
- @revenuecat/purchases-capacitor-ui 11.1.1
- iOS + Android
Thanks!
