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
JavaScript SDK: WebSocket SMS Notifications not coming through
Tags: sms and text messaging
Jan 3, 2024 at 11:26am   •   1 replies  •  0 likes
brian-kleinfall

Using the WebSocket starter code and am not receiving SMS notifications in production, sandbox, or new app environment.

1704309760094.png

WebSocket gets connected as noted by the "Ready to receive" message on start.

Application Scopes:

1704309865858.png

I've tried creating a new app, running in sandbox, and have got nowhere. The message store shows incoming records on GET message-store but notifications are not coming in through the WebSocket.

1 Answer
answered on Jan 3, 2024 at 11:45am  

It seems the subscription was not responding with the proper event filters.

In subscriptionResponse, you will see your eventFilters you passed in. However, subscriptionInfo.eventFilters contains the returned (confirmed) eventFilters from RingCentral. If this returns empty for some reason, you will not receive WebSocket notifications.

At first, the event filters do not get returned/confirmed. Not sure what the reason for this is, or how often it occurs.


 0
on Jan 4, 2024 at 8:49am   •  0 likes

It will be either succeeded (subscription created) and return a subscription id or it failed.

However, sandbox environment no longer support SMS out of the box so I am not sure if that is the cause of the problem or not.

Can you subscribe for different filters e.g. the /presence filter.



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