0.1.0 • Published 2 years ago
web-notify v0.1.0
Simple Web Notification
- GIT
- NPM
Spec
import notify from 'web-notify';
notify(text, params)
- Arguments
- text (Object): Publish message.
- params (Array): Other notification parameters
- More paramters
import {request} from 'web-notify';
request(grantedCallback, deniedCallback)
- Description
- Let user could ask premission manually.
- Arguments
- grantedCallback (function): Run after user accept permission
- deniedCallback (function): Run after user reject permission
Code:
Example Usage
import notify from 'web-notify';
notify('hello');
Chrome 62 not allow permision on insecure connection
Check the following announce, it not only appear on iframe both apply on all insecure connection (non-https).