PubNub Integration

RingCentral: Offline Notifier

In-app chat

In-app chat

Alerts & Notifications

Alerts & Notifications

Last Updated:

2016/08/01

Author:

Devendra

Get RingCentral API Keys

Notify offline chat users via SMS

Offline notifier block notifies the offline users using RingCentral SMS API. If a message is published and a user is not listening to the chat channel, an SMS notification is sent to that user.

Walkthrough

This block sends SMS notifications to offline users.

A message is sent targeting a user's uuid. The block then checks PubNub presence to see if that user is online. If the user is online, the message is sent over PubNub so that the target user can receive it.

If the user is not online, the event handler uses the phone number of the offline user and sends the message over SMS using RingCentral's API. Visit https://developer.ringcentral.com/ to get your credentials for RingCentral API.

Input

Publish a message over the input channel. Input Channel: notifier-channel

{
    "text": "Hi How are you", 
    "to_uuid": "user_uuid" 
}

Feedback & Support

Need help? Contact PubNub Support.


Talk to an expert

Contact Sales