Returns the user identifier associated to this installation
Returns the installation identifier
Returns the permission state of notifications. Having the permission to display notifications doens't mean that this installation is subscribed to push notifications.
Returns the raw subscription associated to this insallation. Having a subscription doesn't necessarily mean the installation is subscribed, the user may have unsubscribed or refused notification. Call #isSubscribed() or #getSubscriptionState() to know the exact state of this subscription.
Returns the subscription state including :
Returns the user language associated to this installation
Returns the user region associated to this installation
Determines whether this installation is subscribed to push notifications and can receive notifications (browser notification permission granted, see #getNotificationPermission)
Listen to SDK events
Determines whether we're running on the same origin of the website
Associate a user identifier to this installation.
Associate a user language override to this installation
Associate a user region override to this installation
Subscribe this installation to notification. Returns true if the installation is subscribed, false otherwise.
Try to subscrive from the given subscription state. Force asking the permission even if the permission is granted
UI related methods
Unsubscribe this installation from notification. Returns true if the installation is unsubscribed, false otherwise.
Generated using TypeDoc