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:
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:
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).