RevenueCat
1. Create app in RevenueCat (see RevenueCat Docs )
- Create a new app in RevenueCat projects
- Create app in Play Store Connect and add the products, subscriptions and offers
- Create app in App Store and add the products, subscriptions and offers
- Connect the apps to the RevenueCat project
2. Create .env file
- Add the
EXPO_PUBLIC_RC_APPLE_KEYandEXPO_PUBLIC_RC_GOOGLE_KEYto your.envfile
EXPO_PUBLIC_RC_APPLE_KEY=aapl_1234
EXPO_PUBLIC_RC_GOOGLE_KEY=goog_12343. Edit revenueCatConfig.js (in config folder):
const revenueCatConfig = {
productIDs: ['monthly-premium', 'appname-monthly'],
entitlementID: ['Premium Access'],
}
export { revenueCatConfig };- productIDs: Add product identifiers for your subscriptions.
- entitlementID: Define entitlements for user access.