What problem does it solve?
The revenuecat-purchase-flow skill solves the complexity of completing RevenueCat purchases and restoring entitlements across mobile platforms without breaking access-gating or error handling.
Core Features & Use Cases
- Cross-platform purchase flow: Fetch the current offering’s packages, purchase the selected package, and confirm entitlement via returned customer info/listeners.
- Correct cancellation handling: Treat user cancellation as a non-error path on iOS, Android, Kotlin Multiplatform, Flutter, and React Native (no alert; no stuck loading state).
- Restore as a user action: Provide a restore path via
restorePurchases() that syncs receipts and updates UI through entitlement gating, not inside the purchase callback.
- Guardrails for purchase UX: Recommend disabling buy buttons during in-flight purchases to avoid double-charging.
- Platform-specific implementation guidance: Uses platform files to implement offerings fetch, purchase, restore, and UI wiring patterns for each supported stack.
Quick Start
Use this skill to implement the RevenueCat purchase and restore logic for your iOS, Android, Kotlin Multiplatform, Flutter, or React Native app by selecting the correct platform file after detecting your project from the working directory.