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
C# SDK - Subscription Service - Stops receiving real-time events
Tags: sdk
Jun 20, 2019 at 7:35am   •   1 replies  •  0 likes
Drew Walker

We are using the C# SDK to collect real-time data events. We have observed a few issues.

  1. The documentation indicates the tokens are supposed to auto-refresh. We are capturing the token refresh events and observe that they seem to automatically refresh twice (a little less than an hour apart), but usually within 3 hours we no longer receive data events. We also tried manually renewing the subscription, but it that did not seem to have any effect on the data.
  2. To address issue 1 above we began monitoring when the subscription was set to expire and if that time lapsed, re-create the connection. This approach seemed to work but we noticed that call events become delayed. Initially only by a minute but as time goes on we have seen delays of over 10 minutes.
1 Answer
answered on Jun 20, 2019 at 9:06am  

Hi Drew,

First of all, I recommend you to use the latest .Net SDK instead of the old C# SDK. The new SDK is much more stable and up-to-date. It does not support auto-refresh token though, but we see that feature is not ideal for real production apps. Especially when the token needs to be shared between processes/apps. We let developers control and manage the refresh token process the way they want to. In the future, we may add it back but the default behavior will be not auto-refreshed.

Back to your problem, it is hard to tell what could be the root cause because there are many components involved in the notification chain. The delay could be because of our system or could be somewhere in the chain thru PubNub too.

If you expect your system to run for long hours or days, I recommend to use Webhook notifications instead of PubNub.

If you still want to tackle the current problem with option "2", can you change your implementation in the way that you don't wait until the subscription expires but a minute before that moment, you cancel the notification then re-create a new one. Also always check if there are multiple active subscriptions due to old subscription has not been completed shut down etc.


 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