iOS
The following method is used to check a user's existing purchased products.
Telling if there is an ongoing subscription service
Description:
Tell if a user has an ongoing subscription service. If yes, this method can be used to tell the benefits the user enjoys.
- Objective-C
- Swift
[[AWPurchaseKit getPurchaseInfo] isSubscriptionUnlockedUser];
AWPurchaseKit.getPurchaseInfo().isSubscriptionUnlockedUser()
Gets the current latest subscription
Description:
Gets the current subscription and, if there are multiple subscriptions, returns the one that has expired the longest
- Objective-C
- Swift
[[AWPurchaseKit getPurchaseInfo] getLatestSubscriptionInfo];
AWPurchaseKit.getPurchaseInfo().getLatestSubscriptionInfo()
Obtain the existing valid subscriptions
Description:
It is used to tell a user's existing valid subscription.
- Objective-C
- Swift
[[AWPurchaseKit getPurchaseInfo] getCurrentValidSubscriptions];
AWPurchaseKit.getPurchaseInfo().getCurrentValidSubscriptions()
Obtain the currently owned non-consumable and non-renewable subscription products.
Description:
It is used to obtain the consumable, non-consumable, and non-renewable subscription items currently owned by the user.
- Objective-C
- Swift
[[AWPurchaseKit getPurchaseInfo] purchasedArray];
AWPurchaseKit.getPurchaseInfo().purchasedArray()