Dear Community,
My application was working fine for a couple weeks. That is, the following codes would fetch the entitlement status. However, since April 4, 2022, the customer entitlement .isActive kept returning true even when I don’t have a subscription. Please help. Thanks.
View Model
@Published var allAccess = false
init () {
Purchases.shared.getCustomerInfo { (customerInfo, error) in
//check customerInfo parameter for active entitlement
if customerInfo?.entitlementsrConstants.entitlementIdentifier]?.isActive == true {
// Unlock that great "pro" content
self.allAccess = true
}
}
}
Louis