CometChat Pro Documentation

You'll find comprehensive guides and documentation to help you start working with CometChat as quickly as possible. Let's jump right in!

SMS Notification

Learn how to send SMS notification for unread messages.

About the extension

The SMS Notification extension helps you send SMS to your users when they have unread messages.


Required: Read Receipts

Be sure to implement read receipts so that your users receive SMS notifications for only unread messages.

Before you begin

We have partnered with Twilio for sending SMS Notifications. You need to set up an account on Twilio before you start using the extension.

Once you signup with Twilio for an account, log in, and create an App. You will then be able to get the credentials for that app.
Note down your credentials as those will be required in the next step.

Extension settings

  1. Login to the CometChat Dashboard and go to the Extensions page.
  2. Add the SMS Notification extension.
  3. Go to the Installed tab and open the Settings for this extension.
  4. You need to save the following Settings.

Configure your backend to store phone number

You can use our API to set private metadata for a user. We recommend adding this code where you call our user creation API.

The metadata is a JSON that should have the @private key present and should have the value contactNumber specified for the user. The format for the private metadata must be as follows:


Receive SMS Notification

Send a message to an offline user and watch them receive an SMS!

Updated 6 days ago

SMS Notification

Learn how to send SMS notification for unread messages.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.