Socket
Socket
Sign inDemoInstall

react-desktop-notification

Package Overview
Dependencies
17
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-desktop-notification

Use browser's desktop notification in React. It depends on notifications API of chrome or else browser's other way.


Version published
Weekly downloads
996
increased by6.52%
Maintainers
1
Install size
2.55 MB
Created
Weekly downloads
 

Readme

Source

react-desktop-notification

  • Use browser's desktop notification in React. It depends on notifications API of chrome or else browser's other way.

install

npm install --save react-desktop-notification
OR
yarn add react-desktop-notification

usage

import Notifier from "react-desktop-notification"

gotNewNotification(){
  ...
  //Here will pop a notifier and always open in a new window when clicked.
  Notifier.start("Title","Here is context","www.google.com","validated image url");

	//Here will pop notifier and open in a specified name window "popwin1" when clicked.
	Notifier.start("Title","Here is context","www.google.com","validated image url","popwin1");

	//Here will pop notifier and focus parent window only when clicked.
	Notifier.focus("Title","Here is context","www.google.com","validated image url");
	...
}

API

Notifier.start(notifier_title, notifier_context, opening_url, icon_url, window_name)

Notifier.focus(notifier_title, notifier_context, opening_url, icon_url)

git

https://github.com/leejaen/React-Desktop-Notification.git

contributors

BIG Thanks!

Keywords

FAQs

Last updated on 15 Oct 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc