Web SDK release notes
Swrve has an open source SDK repository.Β There are two options for downloading the latest public Swrve Web SDK:
- Install the SDK using npm (node package manager).
Run the following command:Β
npm install @swrve/web-sdk. - Download the SDK from theΒ GitHub public repository.
For upgrade instructions, see the Web SDK upgrade guide.
Release 3.0.0β
Release date: TBD
Featuresβ
- Added in-app message support to the Web SDK. In-app messages now render in the browser and support static and dynamic images, animated GIFs, single-line and multiline text, image, text, and themed buttons, multipage messages, Story messages with timed progression, and MP4 video. Portrait and landscape formats are both supported, and messages scale to fit the browser viewport. For more information, see the Integration guide and Intro to in-app messages.
- Added a single
messageListenercallback toinAppMessageConfigfor all in-app message interactions. The listener receives the action (impression,custom, ordismiss), amessageDetailsobject describing the campaign, and aselectedButtonobject describing the button the user selected. For more information, see the Integration guide. - Added Push Inbox support with the
pushInboxMessages,readPushInboxMessage,engagePushInboxMessage,deletePushInboxMessage, andpushInboxUpdateListenerAPIs. For more information, see Push Inbox API. - Added the
getInAppMessageCenterCampaignsAPI to retrieve only in-app message campaigns from the Message Center, and thegetMessageCenterCampaignAPI to retrieve a single Message Center campaign by ID. Both accept optional personalization properties. - Added the
refreshCampaignsAndResourcesAPI to manually refresh all content, including in-app message, Message Center, and Push Inbox content. - Added support for control campaigns. In-app message control campaigns are handled automatically, with nothing displayed and the control impression reported for you. For embedded campaigns, the embedded callback now receives an optional third
isControlargument, and the newembeddedControlMessageImpressionEventAPI reports control impressions. - Added Intervals and Blackout Dates for in-app messages and embedded campaigns. For more information, see Schedule triggered campaigns.
Release 2.6.0β
Release date: Febuary 23, 2025
Featuresβ
- Added
getEmbeddedMessageCenterCampaignsAPI. - Added web push notification permission change events for
grantedanddeniedstates.
Release 2.5.1β
Release date: September 20, 2025
Featuresβ
- Added icon image to Web Push.
Release 2.5.0β
Release date: March 21, 2025
Featuresβ
- Added removeMessageCenterCampaign API.
Fixesβ
- Updated dev only third-party dependencies to mitigate some security vulnerabilities.
Note: Added preliminary private code for internal testing of In-App Messages.
Release 2.4.0β
Release date: Jan 13, 2025
Featuresβ
- Added tracking payload data for push events.
Release 2.3.0β
Release date: March 15, 2024
Featuresβ
- Updated our third-party dependencies to mitigate potential security vulnerabilities.
Release 2.2.1β
Release date: February 1, 2024
Fixesβ
- Updated the current push subscription status on each session start.
Release 2.2.0β
Release date: December 8, 2023
Fixesβ
- Fixed an issue when the application is closed, which could potentially drop push delivered and engaged events.
- Fixed an issue where a potential race condition may occur when subscribing to push notifications for the first time.
Release 2.1.0β
Release date: November 23, 2023
Fixesβ
- Resolved a web push issue to ensure tokens are correctly updated within our backend.
- Upgraded crypto-js to v4.2.0.
Release 2.0.3β
Release date: March 30, 2023
Fixesβ
- Fixed an issue with embedded campaign throttling due to an incorrect UTC DateTime format check.
Release 2.0.2β
Release date: November 2, 2022
Fixesβ
- Removed debug logging to align the Web SDK with the Web Core SDK.
Release 2.0.1β
Release date: July 14, 2022
Fixesβ
- Removed space and length restrictions on event names for consistency across our SDKs.
Release 2.0.0β
Release date: March 9, 2022
Featuresβ
- Added support for the following features:
- A/B resource testing. For more information, see the Integration guide.
- Realtime user properties. For more information, see Manage user properties.
- Embedded campaigns, including auto-wiring of realtime user properties. For more information, see the Integration guide.
- Message center. For more information, see Message Center API Guide.
- Added the push delivered event to web push.
- Moved QA logging to its own queue making it send events independently to the standard event queue, improving reliability and reducing noise when debugging.
- Added better TypeScript support by including types with our npm package.
Fixesβ
- Fixed a rare issue where appID would break in validation for legitimate app IDs.
Previous releases summaryβ
| Date | Version | Features and Fixes |
|---|---|---|
| January 29, 2021 | 1.4.3 | Various bug fixes. |
| January 14, 2021 | 1.4.2 | Resolved an issue where duplicate QA events were displaying in the QA user log. Added device type to device update event. |
| October 23, 2020 | 1.4.1 | Resolved an issue where the browser detection was incorrectly firing an error message on session start. |
| October 22, 2020 | 1.4.0 | Updated tracking of device OS and type for platform-specific delivery of in-app messages. Resolved an issue where the Device Update event was returning Chrome as the value for all browsers. |
| September 16, 2019 | 1.3.2 | Resolved an issue where the content URL was not changing appropriately for customers using EU data storage. |
| July 9, 2019 | 1.3.1 | Tracking will no longer start on unsupported browsers and operating systems and increased the default session interval timeout from 30 seconds to 30 minutes. Various bug fixes. |
| January 17, 2019 | 1.3.0 | Added the in-app purchase event. Resolved an issue where the autoPushSubscribe config was being ignored. |
| October 25, 2018 | 1.2.1 | Bug fixes. |
| October 24, 2018 | 1.2.0 | Multiple additions to package.json meta data and improvements to source maps generation and QA user event logic. Various bug fixes. |
| October 22, 2018 | 1.1.0 | Added support for web push notifications and currency given event. Various bug fixes. |
| August 30, 2018 | 1.0.0 | First public release. |