One of our customers opted out of automatic renewal. She subscribed previously to a yearly subscription, and after a couple of days opted out of renewal. This means her entitlement to that yearly subscription should still be active, just the `willRenew` property of the entitlement should be false. However, the `isActive` property of the entitlement was false.
Only after asking her to restore her purchases, the entitlement was isAcgive again.
Code for checking if subscribed:
1Purchases.shared.getCustomerInfo { (customerInfo, error) in2 if let customerInfo = customerInfo {3 if let entitlement = customerInfo.entitlements[PurchasesManager.entitlementPremium] {4 if (!entitlement.isActive) {5 // Not subscribed, but was subscribed?6 if (premium.premiumFromAppStore) {7 // Logic for ubsubscribing user and informing they're unsubscribed8 }9 }10 }11 }12}
Code for restoring purchases:
1func restorePurchase() {2 self.showLoaderPurchase = true3 PurchasesManager.shared.restorePurchases { customerInfo, error, configured in4 self.showLoaderPurchase = false5 if (configured) {6 if let error = error {7 self.showToast("Error occured during restoring: \(error)")8 } else {9 let hasPremium = customerInfo?.entitlements[PurchasesManager.entitlementPremium]?.isActive ?? false10 self.premium?.premiumFromAppStore = hasPremium11 self.showToast(hasPremium ? "Congratulations. Successfully restored your Premium subscription" : "There are no Premium subscriptions to restore for your account")12 }13 } else {14 self.showToast("Environment is not set up correctly. Please contact support")15 }16 }17}
Is this a bug with RevenueCat or App Store, or am I maybe missing something obvious here?

