Legacy Notice: This extension is already included as part of the core messaging experience and is scheduled for deprecation in the near future.Please note: Legacy extensions are no longer actively maintained and will not receive feature updates or enhancements.
The SMS Notification extension helps you to notify offline users via SMS, when they have unread text messages.After you’ve configured the extension, your users will receive SMS for unread messages in one-on-one conversations.
Required: Read ReceiptsMake sure to implement read receipts so that your users receive SMS notifications for only unread messages.
You can use our Update user API to set private metadata for a user. We recommend adding this code when you call our Create user API.Alternatively, just for the sake of testing purposes, you can add this from the CometChat Dashboard as well.
Click on the Edit option available under the three dots for the user under consideration.
Click on the Edit button on the Details section.
Paste the below JSON in the Metadata input box and hit Save.
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:
Copy
Ask AI
{ "@private": { "contactNumber":"+12345678910" }}
Country code is requiredIt is important to store the contact number with the correct country code to receive SMS notifications.