News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Duplicate notifications when user's presence changes
Tags: notifications
Apr 28, 2023 at 3:48am   •   1 replies  •  0 likes
WB - Jennifer Martinson

I am noticing within my testing that I receive multiple notifications every time a user changes their presence status. I have confirmed that I only have a single subscription for presence change for a single user. When I deactivate the user from the queue (by toggling the switch), I can see 2 notifications come through and it triggers my webhook two times. Since the notification data at that point is something that I need to handle (the user has status = Available but is not part of the call queue), it results in my webhook triggering twice (with 2 authentication calls).

Is there a way to ensure that we only receive single notifications for these changes? I'm concerned about hitting the rate limits for authentication if every trigger is getting triggered twice.


Along the same lines, after my webhook runs and fixes the person's status (putting them back in the queue if they are available), I then receive 2 notifications again. This isn't really a big problem because I don't make any calls based upon these notifications (since I've already processed the situation), but it does make it difficult to debug when everything happens twice.

1 Answer
answered on Apr 28, 2023 at 8:09am  

I doubt that you have multiple subscriptions. Can you check the subscription id in the event to see if they are the same?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us