The brainbox api requires the waveboxApps
permission in the manifest
object with the following properties
isApp [boolean]
true if the tab is an app, false otherwiseuid [string Optional]
the unique id of this app typeurl [string Optional]
the base url for the appname [string Optional]
the name of this app
object with the following properties
count [number]
the number of unread itemsactivity [boolean]
true if there is unread activity
object with the following properties
count [number Optional]
the number of unread itemsactivity [boolean Optional]
true if there is unread activity, false otherwise
object with the following properties
id [string Optional]
a unique id for the messagetext [string]
the tray message textsubtitle [string Optional]
optional extended subtitle textdate [number Optional]
the epoch time of the message
Checks if a tab is a Wavebox app and returns information about it
tabId [int Optional]
the id of the tab to get the app info for. If none is provided, the current tab is used
Returns appInfo [AppInfo]
the information about the app
Gets the current badge information for the tapp
tabId [int Optional]
the id of the tab to get the badge info from. If none is provided, the current tab is used
Returns badgeInfo [BadgeInfo]
the badge information
Gets the current tray messages for the app
tabId [int Optional]
the id of the tab to get the tray info from. If none is provided, the current tab is used
Returns messages [TrayMessage[]]
an array of tray messages
Updates the badge for an app
tabId [int Optional]
the id of the tab to set the badge info for. If none is provided, the current tab is usedupdateProperties [BadgeUpdate]
the update to make to the badge
Sets the tray messages for an app. Only 10 messages can be set, sending more than 10 will slice the list
tabId [int Optional]
the id of the tab to set the message for. If none is provided, the current tab is usedmessages [TrayMessage[]]
the list of tray messages to set
Examples can be found in the examples folder:
- Set the badge count Example. Takes the badge count from the PipeDrive UI, forwards this to the background page and sets it on the app