Skip to main content

Overview

When more than one subscription manager is live in your app, two things need a decision that a single-manager setup makes for you: which manager performs a given purchase, and how you combine each manager’s entitlement state with Encore’s grants. The rest of Add Subscription Product is unchanged.

Route the purchase

Branch inside your onPurchaseRequest() handler on the product id Encore hands you:

Merge the entitlement state

Each manager publishes its own subscription state, and Encore publishes its grants through isActivePublisher(). Combine them into the single flag your UI gates on:
Full contracts: isActivePublisher() · isActive() · EntitlementScope.