Prerequisites
Make sure you’ve implemented Pushwoosh Web SDK on your website. To do so, please follow our guide.
Message Inbox for websites allows you to store web push notifications so users can revisit them later, ensuring important messages are seen.
How it works
Here’s a typical workflow with InboxMessages:
Step | Method |
---|
Page load | |
Synchronizing messages with the server | InboxMessagesModel.updateMessages Executed while the SDK is initialized
|
Deleting outdated messages | InboxMessagesModel.updateMessages Executed while the SDK is initialized
|
Receiving the number of unread messages to update a badge | Pushwoosh.pwinbox.unreadMessagesCount Executed manually (after the onUpdateInboxMessages event triggers)
|
Loading messages to be displayed in Inbox | Pushwoosh.pwinbox.loadMessages Executed manually (after the onUpdateInboxMessages event triggers)
|
Marking messages got in the viewport as read | Pushwoosh.pwinbox.readMessagesWithCodes Executed manually
|
Performing an action assigned to the message opened | Pushwoosh.pwinbox.performActionForMessageWithCode Executed manually
|
Deleting messages by click on a delete icon or swipe-right a message | Pushwoosh.pwinbox.performActionForMessageWithCode Executed manually
|
Event listeners
Public module
WebSDK InboxMessagesPublic module presents a public interface to implement Web Inbox.
Public methods
Check out public methods’ descriptions in the Web Push SDK 3.0 guide.