Permissions

Permissions

Permissions object give access to the following information:

Name

Description

originalApplicationVersion

The original version of the application when first acquired on the store. (iOS only)

originalApplicationDate

The date when the application has been download from the store. (iOS only)

subscriberId

Unique identifier for the subscriber of the app. For more info see Identify the subscriber

installationId

Unique identifier of the app installation. It will change if the use reinstall the app

all

array of Permission associated with this subscriber

Permission

Permission object give access to the following information:

Name

Description

permissionId

Permission identifier

isValid

true if the permission is coming from an IAP, true if is coming from a valid subscription

expireDate

if the permission is coming from a subscription contains the expire date

accountableSkus

array of sku names that unlocked this permission

entitlement

Entitlement

Entitlement

entitlement object give access to the following entilement status.
In general any number greatest or equal of 1 means a valid subscription

Value

Status

Description

-9

NeverBuy

The customer never bought this product.

-8

OtherRefund

The customer received a refund for the subscription.

-7

IssueRefund

The customer received a refund due to a perceived issue with the app.

-6

Upgraded

The system canceled the subscription because the customer upgraded.

-5

ExpiredVoluntary

The customer intentionally cancelled the subscription.

-4

ProductNotAvailable

The product is no longer available.

-3

FailToAcceptIncrease

The customer did not accept the price increase.

-2

ExpiredFromBilling

The receipt is fully expired due to a billing issue.

-1

InRetry

The receipt is expired but the subscription is still in a billing-retry state. If grace period is enabled this state excludes subscriptions in grace period.

0

MissingInfo

The receipt is out of date or there is another purchase issue.

1

ExpiredInGrace

The subscription expired but is in grace period.

2

OffPlatform

The subscription is an off-platform subscription.

3

NonRenewing

The subscription is a non-renewing subscription.

4

AutoRenewOff

The subscription is active and auto-renew is off.

5

AutoRenewOn

The subscription is active and auto-renew is on.

Checking permission status

The current status of the permission can be checked by the permissions method or after a purchase


Did this page help you?