Tutorial: Notification.close

Notification.close

Deprecated. Please migrate to the Notifications 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));