Tutorial: Notification.close

Notification.close

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

Closes the notification

Example

var notification = fin.Notification.create({ url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Notification.close.html' });

notification.show().then(() => {
    notification.close().then(() => console.log('Notification closed')).catch(err => console.log(err));
}).catch(err => console.log(err));