1.0.16 • Published 1 year ago

@pod-notification/web-push v1.0.16

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

POD Notification / Web Push

Web Push Notification Package

Installation

Install via npm :

npm i @pod-notification/web-push

Then , import this file and send config:

<script src="node_modules/@pod-notification/web-push/index.js" type="text/javascript"></script>
<script type="text/javascript">
    init( config = {
        appId: 'your app id',
        ssoId: ssoId,
        apiToken: string,
        data: [],
        isSubscriptionRequest: boolean,
        isProduction: boolean,
        disableBrowserNotification: boolean,
        onGetData: (data) => {
            console.log("get notification message data :", data)
        }
    })
</script>

Important Please move firebase-messaging-sw.js to your root of project

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago