matter.work
Building Apps / The SDK

Notifications and the device

Send native OS notifications that deep-link into your app, and check device capabilities.

Use matter.notify to alert the member when background work needs their attention, and matter.device to inspect whether Browser Use or Computer Use is enabled on the current computer.

Native OS notifications#

matter.notify posts an OS notification under your app’s name. Clicking the notification brings Matter to the front and opens your app at path:

Sending a notification
await matter.notify({
  title: 'LinkedIn session expired',
  body: 'Sign in again in Chrome, then click Resume on Today.',
  path: '/today',
})
  • title (required): up to 120 characters.
  • body (optional): up to 400 characters.
  • path (optional): app route starting with / (defaults to /).
  • Built-in deduplication & rate limits: Identical notification text is suppressed for 10 minutes, and each app may send at most 10 notifications per hour. When a worker or routine hits a blocker that requires human action, notify once and wait.

Checking device capabilities#

matter.device() returns the current computer’s ID and whether the member has turned on Browser Use or Computer Use here:

Checking capabilities on a setup page
const { id, browserUseEnabled, computerUseEnabled } = await matter.device()

Use this on your app’s first page to let the member know if one of your routines requires Browser Use (to drive their Chrome session) or Computer Use (which must be turned on in Matter’s Settings › Devices before a routine declaring "needs": ["computer"] can run).