Initialize Encore in Your App
Begin by editing your main application entry point. Depending on your app architecture, this could be yourAppDelegate.swift for UIKit apps or your main App struct for SwiftUI apps.
SwiftUI
UIKit
Encore, the primary class for interacting with the SDK’s API. Make sure to replace pk_your_api_key_here with your public API key.
If you don’t have access to your API key, please contact your Encore representative.
Next Steps
Now that Encore is configured, you’re ready to:- Identify Users - Learn how to identify users for entitlement tracking
- Check Entitlements - Start checking user entitlements in your app
- Present Offers - Show promotional offers to your users