notify( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Sends a notification.

The notify() function sends a notification to the specified recipients on the specified channels.

List the the channels for the notification in the channels parameter .

List the recipients for the notification in the toContacts, toSiteContributors, and toTopicsSubscribers parameters.

Method Declaration
Copy
Method Parameters
bodystringRequired

Body of the notification. This contains the main content of the notification.


channelsArray<Channel>Required

Channel through which users receive the notification.

  • "Mobile": Sends the notification to the Wix App.
  • "Dashboard": Sends the notification to the collaborator's Wix Dashboard.
  • "Browser": Sends the notification to the collaborator's browser.

optionsNotifyOptions

Notification options.

Did this help?