Skip to content

Commit

Permalink
Merge pull request #10 from CleverTap/jio_notification_click_fix
Browse files Browse the repository at this point in the history
Jio notification click fix
  • Loading branch information
PraveenCTzen authored Aug 23, 2024
2 parents 5c7eb6b + 813029f commit 10e52f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Change Log
==========

Version 1.1.2 *(23 August, 2024)*
---------------------------------
- Fixes a bug where the notification clicked event was raised even when the 'Dismiss' button was pressed.

Version 1.1.1 *(11 October, 2021)*
---------------------------------
- Fixes a bug where VAPID token was not being pushed to CleverTap on first App Launch
Expand Down
3 changes: 3 additions & 0 deletions ctServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ self.addEventListener('notificationclick', function(event) {
if(typeof key === 'undefined'){
key = notification.title;
}
if(event.action == 'dismiss'){
return
}
var promise = localforage.getItem(key).then(function(value) {
var notificationData = JSON.parse(value);
var redirectPath = notificationData.redirectPath;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-fxos",
"version": "1.1.1",
"version": "1.1.2",
"description": "CleverTap Firefox OS SDK",
"main": "clevertap.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion serviceWorker.js

Large diffs are not rendered by default.

0 comments on commit 10e52f7

Please sign in to comment.