Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
All notable changes to this project will be documented in this file.

## [2.2.2] 9th Sept 2025
- Fixed handling of safari web push notifications in iPhone.

## [2.2.1] 1st Sept 2025
- Added handling for close icon in web popup image only template.

Expand Down
9 changes: 5 additions & 4 deletions clevertap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11866,7 +11866,8 @@
} else {
if (isSafari()) {
// This is for migration case for safari from apns to vapid, show popup even when timer is not expired.
if (vapidSupportedAndMigrated || fcmPublicKey === null) {
// If PushManager is not available then return
if (vapidSupportedAndMigrated || fcmPublicKey === null || !('PushManager' in window)) {
return;
}

Expand Down Expand Up @@ -13848,7 +13849,7 @@
case WVE_QUERY_PARAMS.SDK_CHECK:
if (parentWindow) {
logger.debug('SDK version check');
const sdkVersion = '2.2.1';
const sdkVersion = '2.2.2';
parentWindow.postMessage({
message: 'SDKVersion',
accountId,
Expand Down Expand Up @@ -16327,7 +16328,7 @@
let proto = document.location.protocol;
proto = proto.replace(':', '');
dataObject.af = { ...dataObject.af,
lib: 'web-sdk-v2.2.1',
lib: 'web-sdk-v2.2.2',
protocol: proto,
...$ct.flutterVersion
}; // app fields
Expand Down Expand Up @@ -18249,7 +18250,7 @@
}

getSDKVersion() {
return 'web-sdk-v2.2.1';
return 'web-sdk-v2.2.2';
}

defineVariable(name, defaultValue) {
Expand Down
2 changes: 1 addition & 1 deletion clevertap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clevertap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clevertap-web-sdk",
"version": "2.2.1",
"version": "2.2.2",
"description": "",
"main": "clevertap.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/modules/webPushPrompt/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ export const createNotificationBox = (configData, fcmPublicKey, okCallback, subs
} else {
if (isSafari()) {
// This is for migration case for safari from apns to vapid, show popup even when timer is not expired.
if (vapidSupportedAndMigrated || fcmPublicKey === null) {
// If PushManager is not available then return
if (vapidSupportedAndMigrated || fcmPublicKey === null || !('PushManager' in window)) {
return
}
if (!configData.isPreview) {
Expand Down
Loading