Skip to main content
Answer

Are delayed webhook notification sent immediately after calling REST API?

  • July 19, 2023
  • 2 replies
  • 190 views

Forum|alt.badge.img+1

We are testing sync mechanism of REST API (PLAY_STORE, SANDBOX). We found that if a renewal webhook is not sent, and when we GET https://api.revenuecat.com/v1/subscribers/{app_user_id}, the same renewal webhook notificaiton is sent immediately. I can’t find any information about whether delayed webhooks would be sent after calling REST API. Is this coincidence or a normal behavior of RevenueCat? 

Best answer by MarcosC

Hi @jacklin 

We don’t have any mechanism to delay webhooks. We send them as soon as we identify that there was an event (in this case a renewal). 

The best way to keep things up to date with Google is configuring Real Time notifications (https://www.revenuecat.com/docs/google-server-notifications) - This way, we get notified every time there was a change in google and we can emit our events. If that is not configured, we have our own internal logic to try to keep things up to date, but there might be some delays.

Hope this helps

This post has been closed for comments

2 replies

MarcosC
RevenueCat Staff
Forum|alt.badge.img+7
  • RevenueCat Staff
  • Answer
  • July 19, 2023

Hi @jacklin 

We don’t have any mechanism to delay webhooks. We send them as soon as we identify that there was an event (in this case a renewal). 

The best way to keep things up to date with Google is configuring Real Time notifications (https://www.revenuecat.com/docs/google-server-notifications) - This way, we get notified every time there was a change in google and we can emit our events. If that is not configured, we have our own internal logic to try to keep things up to date, but there might be some delays.

Hope this helps


Forum|alt.badge.img+1
  • Author
  • New Member
  • July 26, 2023

I finally found that our staging project is not receiving RTDN, so webhook notifications delayed.