question

brian-kleinfall8967 avatar image
brian-kleinfall8967 asked Phong Vu commented

JavaScript SDK: WebSocket SMS Notifications not coming through

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.

sms and text messaging
1704309760094.png (58.1 KiB)
1704309865858.png (10.0 KiB)
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

brian-kleinfall8967 avatar image
brian-kleinfall8967 answered Phong Vu commented

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.

1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image Phong Vu ♦♦ commented ·

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.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys