Tutorial: Notification.sendMessage

Notification.sendMessage

Deprecated. fin.Notification has been deprecated and will be removed by major version 22. Please migrate to the Notification Center API.

Sends a message to the notification

Example

var notification = fin.Notification.create({ url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Notification.sendMessage.html' });
notification.show().then(() => {
    notification.sendMessage('Hello, World!').then(() => console.log('Message sent')).catch(err => console.log(err));
}).catch(err => console.log(err));