I am receiving entitlement.isActive == true when expiration date is already long passed.
Here’s my code:
Purchases.shared.purchaserInfo { (purchaserInfo, error) in
if let error = error {
complete(.failure(error))
return
}
if let entitlement = purchaserInfo?.entitlements.alllSelf.entitleId] {
if entitlement.isActive {
UserDefaults.subscriptionCache = SubscriptionCache(isSubscribe: true, lastCheckedDate: Date())
}
complete(.success(entitlement.isActive))
} else {
complete(.failure(IAPError.noPurchasedItem))
}
}
Here’s my result:
The current time is 10/23 0:00 UTC
Please help me with this issue.