Documentation

Entitlements

Entitlements

Access you give users yourself, e.g. pro for someone who bought your app on another platform. Create the keys under Entitlements, grant them from the user's page, a conversation or your server, and your app unlocks what they stand for. They add to your store purchases, never replace them: check both.

In your app, with the SDK
// Store purchases first: a user who paid in the store keeps Pro, whatever BeeAppie says.
var isPro = store.Owns("pro") || BeeAppieSdk.Instance.HasEntitlement("pro");

// Kept on the device, so it works offline; fetched at launch and when the app returns.
BeeAppieSdk.Instance.EntitlementsChanged += (_, e) => { isPro = store.Owns("pro") || e.Has("pro"); };
await BeeAppieSdk.Instance.RefreshEntitlementsAsync(); // e.g. on the "Restore purchases" button
// Store purchases first: a user who paid in the store keeps Pro, whatever BeeAppie says.
var isPro = store.owns("pro") || BeeAppie.hasEntitlement("pro")

// Kept on the device, so it works offline; fetched at launch and when the app returns.
BeeAppie.onEntitlementsChanged = { e -> isPro = store.owns("pro") || e.has("pro") }
BeeAppie.refreshEntitlements() // in a coroutine, e.g. on the "Restore purchases" button
// Store purchases first: a user who paid in the store keeps Pro, whatever BeeAppie says.
var isPro = store.owns("pro") || BeeAppieSDK.hasEntitlement("pro")

// Kept on the device, so it works offline; fetched at launch and when the app returns.
BeeAppieSDK.onEntitlementsChanged = { e in isPro = store.owns("pro") || e.has("pro") }
await BeeAppieSDK.refreshEntitlements() // e.g. on the "Restore purchases" button
// Store purchases first: a user who paid in the store keeps Pro, whatever BeeAppie says.
var isPro = store.owns('pro') || await BeeAppie.hasEntitlement('pro');

// Kept on the device, so it works offline; fetched at launch and when the app returns.
BeeAppie.onEntitlementsChanged = (e) => isPro = store.owns('pro') || e.has('pro');
await BeeAppie.refreshEntitlements(); // e.g. on the "Restore purchases" button
// Store purchases first: a user who paid in the store keeps Pro, whatever BeeAppie says.
let isPro = store.owns('pro') || (await BeeAppie.hasEntitlement('pro'));

// Kept on the device, so it works offline; fetched at launch and when the app returns.
BeeAppie.onEntitlementsChanged = e => { isPro = store.owns('pro') || e.has('pro'); };
await BeeAppie.refreshEntitlements(); // e.g. on the "Restore purchases" button
// Store purchases first: a player who paid in the store keeps Pro, whatever BeeAppie says.
var isPro = store.Owns("pro") || BeeAppieSdk.HasEntitlement("pro");

// Kept on the device, so it works offline; fetched at start and when the game resumes.
BeeAppieSdk.EntitlementsChanged += e => isPro = store.Owns("pro") || e.Has("pro");
await BeeAppieSdk.RefreshEntitlementsAsync(); // e.g. on the "Restore purchases" button
Or with the HTTP API
GET /v1/entitlements
→ { "userId": "usr_…", "entitlements": [{ "key": "pro", "name": "Pro", "expiresAt": null }] }

# From your server (server key):
PUT    /v1/manage/users/{id}/entitlements/pro   { "expiresAt": null, "note": "Order 1234" }
DELETE /v1/manage/users/{id}/entitlements/pro

With the usual headers: your app key, and the user's token.

  • Revoking removes only what you granted in BeeAppie: purchases the user made in a store are not affected. Never lock a user out because BeeAppie does not list an entitlement.
  • A grant can expire (a trial, a yearly licence); the SDK stops counting it then, also offline.
  • When a user signs in on another device, their entitlements come with them.

Ready when you are

BeeAppie opens to new apps soon. Leave your email and we will tell you when you can sign up.

Join the waitlist SDKs and downloads