Purpl Documentation
Connect the Purpl service
Connect managed catalogs and server entitlements to a Swift app.
Prepare the service
- Register the app and Apple store in Purpl.
- Connect products to entitlements.
- Create a catalog and a paywall that uses it.
Configure server mode
Server mode can load product and entitlement configuration from Purpl without a local PurchaseConfiguration. The SDK resolves the active configuration using the bundle identifier and paywall identifier.
Swift
import Purpl
import PurplUI
Purchases.configure(entitlementMode: .server)
PaywallView(paywallIdentifier: "standard") {
PremiumMarketingContent()
}Remote configuration cache
The SDK caches the last successful remote paywall configuration, presents it immediately, and refreshes in the background. The first request fails when both the network response and cache are unavailable.