RevenueCat Integration
RevenueCat makes it easy to add in-app purchases and subscriptions to your Natively app. Handle payments, manage subscriptions, and track revenue without complex payment infrastructure.What is RevenueCat?
RevenueCat is a subscription management platform that:- Handles payments - Process iOS and Android purchases
- Manages subscriptions - Track status, renewals, cancellations
- Syncs across platforms - One subscription works on both iOS and Android
- Provides analytics - Revenue, churn, and subscriber metrics
Setting Up RevenueCat
Press on "More" in Natively and then RevenueCat
You will be prompted to create an account / sign in to your RevenueCat account and authorize permissions to Natively.
Create a Project & Press Connect
Natively automatically creates a Paywall, product, entitlements and connects this to your app with 1 prompt.
Modifying Purchases to Your App
Tell the AI what you want to sell:Common Patterns
- Paywall Screen
- Feature Gating
- Consumable Purchase
Purchase Types
RevenueCat supports:| Type | Description | Example |
|---|---|---|
| Subscription | Recurring payment | Monthly premium access |
| Non-consumable | One-time permanent purchase | Remove ads forever |
| Consumable | Single-use purchases | Credits, tokens |
Entitlements
Entitlements are what users get access to after purchasing:Checking Subscription Status
The AI will generate code to check if users have active subscriptions:Restore Purchases
Always include a restore option for users who:- Reinstall the app
- Switch devices
- Had billing issues
Testing Purchases
Sandbox Testing
Before going live:- Use Apple/Google sandbox accounts
- Purchases are simulated (no real charges)
- Subscription periods are shortened for testing
- iOS
- Android
Use a Sandbox Apple ID created in App Store Connect
RevenueCat Dashboard
Monitor purchases in the RevenueCat dashboard:- Active subscriptions
- Revenue metrics
- Customer history
- Error logs
Best Practices
Clear Value Proposition
Show what users get before asking them to pay
Multiple Options
Offer monthly and yearly (with discount) options
Free Trial
Consider offering a free trial period
Restore Button
Always include restore purchases option
App Store Requirements
Both app stores have requirements for in-app purchases:Apple App Store
- Must use Apple’s IAP for digital goods
- Clearly display pricing
- Terms of service required
- Auto-renewal disclosure
Google Play Store
- Must use Google Play Billing for digital goods
- Clear subscription terms
- Easy cancellation access
- Price displayed before purchase
Troubleshooting
Purchases Not Working
Purchases Not Working
- Verify RevenueCat is connected correctly
- Check product IDs match in app and stores
- Ensure app is properly configured in App Store Connect / Play Console
Restore Not Finding Purchases
Restore Not Finding Purchases
- User must be signed into same App Store / Play Store account
- Check sandbox vs production environment
- Verify subscription hasn’t expired
Entitlement Not Granted
Entitlement Not Granted
- Check RevenueCat dashboard for the purchase
- Verify entitlement is linked to product
- Check for webhook configuration issues
Resources
RevenueCat Docs
Official RevenueCat documentation
Pricing Best Practices
Guide to subscription pricing
Next Steps
Deployment
Deploy your app with payments
Backend Features
Add backend functionality