Application.onCreate(), before using any other SDK methods.
Signature
Parameters
Registering a controller is build-time wiring, not user state: it survives
reset(), so logging a user out does not require re-registering.Unlock modes
Claimed; Verified is reachable only under Strict, where an in-sheet poll can upgrade the axis in-session. With UnlockMode.Strict, a claim that ends unverified in-session is persisted and re-checked on later launches and foregrounds until the server settles it, surfacing on Encore.outcomes as PlacementOutcome.StrictUnlockVerified. Pending claims are cleared by reset() and by identify() with a different user, and never grant anything by themselves.
Log levels
Higher levels include all lower levels. For example,
INFO will also show warnings and errors.API keys
Encore supports two types of API keys:Use the test key (
pk_test_...) during development to exercise the entire entitlement lifecycle end to end. It serves a demo catalog, so the claim, the advertiser page, and the unlock all work without a live campaign or a real payout.Your own offers do not appear under a test key. For that, use the live key and accept that the traffic is recorded. See what a test key serves.Usage
Basic configuration
With a purchase controller
If your app has a subscription product configured, register the controller here. Registration is build-time wiring, not user state: it survivesreset().
With debug logging (development)
Related
- EncorePurchaseController: the contract the
purchaseControllerargument must satisfy - Encore.outcomes: where
UnlockMode.Strictsurfaces cross-launch verifications - Configure the SDK: the quickstart walkthrough