EasyApp

RevenueCat

Learn how to configure RevenueCat apiKey, entitlementID, and ChinaProxyURL in the project

The configuration code for RevenueCat is also in the EasyAppSwiftUI/Constants/Constants.swift file. Here you mainly need to understand where to configure RevenueCat apiKey, entitlementID, and ChinaProxyURL.

How to integrate RevenueCat step by step will be detailed in the Integrations/RevenueCat documentation.

EasyAppSwiftUI/Constants/Constants.swift
enum Constants {

	//  ... other configurations

	enum RevenueCat {
		///  The API key for your app from the RevenueCat dashboard: https://app.revenuecat.com
		static let apiKey = "your revenuecat api key"

		/// The entitlement ID from the RevenueCat dashboard that is activated upon successful in-app purchase for the duration of the purchase.
		static let entitlementID = "your revenuecat entitlement id"

		// Proxies & configuration for users in Mainland China
		// https://www.revenuecat.com/docs/getting-started/configuring-sdk
		static let ChinaProxyURL = "https://api.rc-backup.com/"
	}

	// ... other configurations
}

Reminder

If you are a user in mainland China, you need to configure the ChinaProxyURL value.

EasyAppSwiftUI/Constants/Constants.swift
enum RevenueCat {
	// This value is the proxy address officially provided by RevenueCat for using RevenueCat services in mainland China. Please do not modify.
	static let ChinaProxyURL = "https://api.rc-backup.com/"
}

For more information about this, please refer to the RevenueCat documentation.

Learn More About RevenueCat Integration

Last updated on