Skip to main content
Question

JavaScript SDK: WebSocket SMS Notifications not coming through

  • January 3, 2024
  • 2 replies
  • 52 views

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.

2 replies

  • Author
  • Known Participant
  • January 3, 2024

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.


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • January 4, 2024

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.