@metamask/notification-example-snap

2.3.0 • Public • Published

@metamask/notifications-example-snap

This snap demonstrates how to use snap_notify to send in-app and desktop notifications to the user.

Snap manifest

Note: Using snap_notify requires the snap_notify permissions. Refer to the documentation for more information.

Along with other permissions, the manifest of this snap includes the snap_notify permission:

{
  "initialPermissions": {
    "snap_notify": {}
  }
}

This permission does not require any additional configuration.

Snap usage

This snap exposes an onRpcRequest handler, which supports the following JSON-RPC methods:

  • inApp - Send an in-app notification to the user.
  • native - Send a desktop notification to the user.

For more information, you can refer to the end-to-end tests.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.38.1-flask.10flask
2.3.08,221latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.08,221
2.2.00
2.1.40
2.1.30
2.1.20
2.1.10
2.1.00
2.0.10
2.0.00
1.0.00
0.38.1-flask.10
0.38.0-flask.10
0.37.2-flask.10
0.37.1-flask.10
0.37.0-flask.10
0.36.1-flask.10
0.36.0-flask.10
0.35.2-flask.10
0.35.1-flask.10
0.35.0-flask.10

Package Sidebar

Install

npm i @metamask/notification-example-snap

Weekly Downloads

6,113

Version

2.3.0

License

(MIT-0 OR Apache-2.0)

Unpacked Size

38.2 kB

Total Files

7

Last publish

Collaborators

  • danfinlay
  • kumavis
  • mcmire
  • rekmarks
  • metamaskbot
  • gudahtt
  • nicholasellul
  • sethkfman
  • naugtur