Hey everyone,
I am struggling how to unlock premium content after successful transaction. Based on docs and github a came up with :
Purchases.shared.getCustomerInfo { (info, error) in
guard let info = info, error == nil else { return }
if info.entitlements.all "allaccess"]?.isActive == true{
//pro content here
} else {
//free content
}
}
}
but it throws errors at does not seems like to work.
I have RC 4.0.0
Thanks for helping:)