checkEntitlements() method.
Entitlement is access to the premium features of your application. → Read more about creating and using entitlements here.
You need to call the checkEntitlements() method at the start of your app to check if a user has the required entitlement. This method will check the user’s receipt and return current entitlements.
In addition, Qonversion can manage cross-platform entitlements with the user Identity concept (e.g. after your users subscribe using the IOS app, you can use Qonversion to check their entitlements in your Android or Web applications)
Qonversion SDK caches all required data on products and entitlements. The data is still immediately available when the internet connection is lost, or there are server-side delays.
The Entitlement Object
- The second one is the first paid transaction, trial converted.
- All the other - subscription renew transactions, thus renewsCount is equal to 18. |
|
grantType| Grant type of entitlement-purchase: User bought a subscription -familySharing: User got entitlement via family sharing offerCode: User got entitlement using offer codemanual: User got entitlement via Qonversion dashboard feature | |lastActivatedOfferCode| The last activated offer code that unlocks the current entitlement. | |transactions| An array of Transaction objects that contains information about transactions that unlocked current entitlement. |
The Transaction object
production| |ownershipType| Type of the ownership for the transaction:-owner- User owns the transactionfamilySharing- User got transaction via family sharing | |type| Type of the transaction:-subscriptionStartedsubscriptionRenewedtrialStartedintroStartedintroRenewednonConsumablePurchase|
Making Purchases Offline SDK mode