Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@metamask/notification-example-snap

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/notification-example-snap

MetaMask example snap demonstrating the use of `snap_notify`

  • 2.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

@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.

Keywords

FAQs

Package last updated on 04 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc