@pod-notification/web-push
v1.0.16
Published
web push SDK
Downloads
3
Readme
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