Skip to main content

Class: Notifications

Notifications API is a part of the Player SDK used for launching alerts to the Player. Use global enplug.notifications object to access these methods.

You may have noticed these types of alerts created by the Social App when new posts are received by the Player. A notification consists of an icon and a message.

note

If the user has disabled alerts for their display your notifications will be automatically suppressed by the Player.

Methods#

post#

post(message): Promise<string>

Parameters#

NameType
messagestring

Returns#

Promise<string>