Apple Server Notification Forwarding URL not working (but only in production)

Hello. For some reason the purchases work perfectly in sandbox but production it’s not working. I can see the purchase in my revenuecat dashboard so it's not a revenuecat issue, but I don’t see any logs in my server.

To make sure I deleted the app and re installed the development build to make another purchase, and it worked perfectly (because they are in sandbox), meaning the purchase appears in the RC dashboard but I also can see the logs in my server.

It’s crucial that this works because it’s my server that adds the tokens to the customer’s account.

I've tried setting the url again and also tried setting only the production URL. But the result is the same, only the sandbox URL is triggered, production URL is not.

For some reason the purchases work perfectly in sandbox but production it’s not working. I can see the purchase in my revenuecat dashboard so it's not a revenuecat issue, but I don’t see any logs in my server.

We would recommend checking the Get Notification History endpoint in the App Store Server API, it will show failed notification attempts, and why they failed in the sendAttempts array.

It’s crucial that this works because it’s my server that adds the tokens to the customer’s account.

It is recommended to never rely on App Store Server Notifications as the only source of data. If a device sends a valid signed JWS to your server, you should also unlock content. The users device may receive the transaction information before the notification arrives

Apple Server Notification Forwarding URL not working (but only in production)
 
 
Q