Checking Subscription Status
Check Premium Access
true if user has active subscription or non-renewing lifetime purchase.
Use this method to determine whether or not user has active premium access. If you have consumable purchases, this method won't operate correctly, because Apphud SDK doesn't differ consumables from non-consumables.
You should not use this method if you have consumable in-app purchases, like coin packs.
Check Subscription Status
true if user has active subscription.
Use this method to determine whether or not user has active premium subscription.
If you have non-consumable or consumable purchases, you should better use
Get Subscription Details
To get subscription object (which contains expiration date, autorenewal status, etc.) use the following method:
If user has more than one active subscription, this method will return the first subscription from the array. Consider using
Apphud.subscriptions()method in this case.
Check Non-Renewing Purchase Status
Use this method to check whether the user has purchased in-app purchase and it's not refunded. Returns
false if was never purchased or is refunded.
Get Non-Renewing Purchase Details
To get non-renewing purchases, which contain purchase date, product identifier and cancellation date, use the following method:
It will return array of all non-renewing in-app purchases user has ever purchased. In-app purchases are sorted by purchase date.
Updated 3 months ago