Announcements are a special Message type sent to a set of users of the application that will arrive outside of the context of a conversation (the getConversation() method will return null). Announcements can only be sent through your backend using the Server API.

Fetching announcements

You can use the following queries to fetch announcements:

var query = client.createQuery({
    model: layer.Core.Query.Announcement

query.on('change', function(evt) {

Marking an announcement as read

The following code marks an Announcement as read; this code will set the property and trigger an update to the server:

announcement.isRead = true;
Messages Rich Content