Subscription status
Purchasely.userSubscriptions(success: { (subscriptions) in
// Subscription object contains the plan purchased and the source it was purchased from (iOS or Android)
// Calling unsubscribe() will either switch the user to its AppStore settings
// or display a procedure on how to unsubscribe on Android
}, failure: { (error) in
// Display error
})[Purchasely userSubscriptionsWithSuccess:^(NSArray<PLYSubscription *> * _Nullable) {
// Subscription object contains the plan purchased and the source it was purchased from (iOS or Android)
// Calling unsubscribe() will either switch the user to its AppStore settings
// or display a procedure on how to unsubscribe on Android
} failure:^(NSError * _Nullable) {
// Display error
}];Purchasely.userSubscriptions(
onSuccess = { list ->
// Subscription object contains the plan purchased and the source it was purchased from (iOS or Android)
// Calling unsubscribe() will either switch the user to its Google Play settings
// or display a procedure on how to unsubscribe on iOS
},
onError = { throwable ->
//Display error
}
)Last updated