Skip to main content
  • Snap
  • Restricted

snap_notify

Description

Display a notification in MetaMask or natively in the OS. Snaps can trigger a short (up to 80 characters) notification message for actionable or time sensitive information. inApp notifications can also include an optional expanded view. The expanded view has a title, content, and optional footer link shown when a user clicks on the notification.

Parameters

type

"inApp" | "native"required

The notification type (inApp or native). We recommend using inApp because native notifications may be rate-limited by the OS.

message

stringrequired

The message to display in the notification.