I’m using the following to purchase inapp using revenue cat
if let offerings = offerings {
for offering in offerings.all {
let packages = offering.value.availablePackages
if let indexOfItem = packages.firstIndex(where: { $0.storeProduct.productIdentifier == productId }) {
let package = packages[indexOfItem]
Purchases.shared.purchase(package: package) { (transaction, customerInfo, error, userCancelled) in
if customerInfo?.entitlements["sumizeit_premium"]?.isActive == true {
Task {
await self.purchase (vc: vc, productId: productId, product: productId)
}
}
}
}
}
}
Is that the correct code to make purchases? When I use that code I’m able to purchase, but apple server notifications do not work. I don’t get an apple server notification and the forwarding does not work. Can someone help please?