Skip to main content
Question

Apple Server Notifications Not being triggered

  • March 16, 2025
  • 1 reply
  • 134 views

Forum|alt.badge.img

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? 

This post has been closed for comments

1 reply

Forum|alt.badge.img+1
  • RevenueCat Staff
  • March 17, 2025

Hey @naissa-b324d6,

 

Is this a sandbox purchase? On App Store Connect do yo have the RevenueCat URL set for both the production server URL and the sandbox server URL? Maybe it’s possible it’s not for sandbox? More details here - https://www.revenuecat.com/docs/platform-resources/server-notifications/apple-server-notifications

 

Also to help debug things a bit more, are you able to see your purchases on the RevenueCat dashboard?