Solved

IOS events lag

  • 1 December 2023
  • 1 reply
  • 79 views

Badge +1

I am testing the purchases of subscriptions for both ios and android and receiving webhook notifications to my backend in order to update the subscription status of a user. Android works really well, every time i purchase a subscription, a renewal process happens or cancel/expiration, the events are received by revenuecat in real time and webhook requests are sent instantly. For IOS however for some reason it has a big lag. For example i renew a subscription directly from the app store, and revenuecat has not received the event not even 5 minutes later. Every time a renewal event occurs it’s delivery time is usually 3-5 minutes later then the purchase date in the request. Also the time window between renewal seem to not correspond with the time set in the appstore settings. For example if i set 5 minutes between renewals, sometimes is 5 minutes sometimes is 10 minutes between two renewals.

Has anyone encountered this problem in ios sanbox environemnt? Is it the same for production also?

icon

Best answer by Haley Pace 6 December 2023, 01:38

View original

1 reply

Userlevel 4
Badge +8

Hi, the lag can be in part be due to the sandbox environment, but this can be reduced by enabling Apple Server Notifications if you haven’t already, see here: https://www.revenuecat.com/docs/apple-server-notifications

In regards to the renewal times, this depends on the duration of your subscription as sandbox’s accelerated renewal time is determined for each. If it is 1 week or 1 month, the renewal time will be 5 minutes in sandbox, but if it is 3 months then the renewal time will be 10 minutes. minutes: https://www.revenuecat.com/docs/google-play-store#working-with-subscriptions

Reply