@suprsend/web-sdk 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +1 -1
- package/public/serviceworker.js +1 -1
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ Create `serviceworker.js` file such that it should be publicly accessible from `
|
|
|
130
130
|
|
|
131
131
|
```javascript
|
|
132
132
|
importScripts(
|
|
133
|
-
'https://cdn.jsdelivr.net/npm/@suprsend/web-sdk@
|
|
133
|
+
'https://cdn.jsdelivr.net/npm/@suprsend/web-sdk@3.0.3/public/serviceworker.min.js'
|
|
134
134
|
);
|
|
135
135
|
|
|
136
136
|
initSuprSend(publicApiKey);
|
|
@@ -258,6 +258,10 @@ feedClient.remove();
|
|
|
258
258
|
// If stores are used, this method will change active store
|
|
259
259
|
feedClient.changeActiveStore(storeId: string)
|
|
260
260
|
|
|
261
|
+
// Used to reset badge count which is shown on bell icon. This count is latest notifications that user received from the last he opened inbox popup.
|
|
262
|
+
// call this on click of bell icon
|
|
263
|
+
feedClient.resetBadgeCount()
|
|
264
|
+
|
|
261
265
|
// mark notification as seen
|
|
262
266
|
await feedClient.markAsSeen(notificationId: string)
|
|
263
267
|
|
package/package.json
CHANGED
package/public/serviceworker.js
CHANGED