Hello,
I am trying to convert a paid app into subscription, but I am facing a situation which I need help. I know I can detect the active subscriptions via active entitlements:
!customerInfo!.entitlements.active.isEmpty
and detect if any entitlements are not active then lock the premium version for example. But I am converting a paid app into subscription, so I detect if the user is purchased the app before and unlock it using customerInfo.originalApplicationVersion.
That creates a conflict situation, I am unlocking the pro features for previous users and then there is no active subscription for that user in customerInfo, so the in this code:
@Published var customerInfo: CustomerInfo? {
didSet {
if !customerInfo!.entitlements.active.isEmpty {
print("UNLOCK PRO VERSION")
} else {
print("LOCK PRO VERSION")
}
}
}
I lock pro version for a user that hasn’t any subscription, it conflicts for previous user who bought the app. So I am looking for an API to lock the pro features only if the subscription is expired not Active/Not-Active entitlements in general. I hope I explained correctly.
Thanks