How to read this changelog: Understanding SDK changelog urgency and impact
v2.30.2
Recommended if you use: Text/URL Prompt questions with the in-app browser,trackAndPresent() from background work or during Activity transitions, or Session Replays- chore: Updated the Web SDK to v2.55.3.
- fix: [impact: security] Fix for potential JS injection via parameters passed by the host application.
- fix: [impact: security] The in-app browser now only opens http(s) URLs, and links from it to other apps can no longer target specific components inside the host app.
- fix: [impact: behavior]
trackAndPresent()no longer drops the event when called while no Activity is visible; the survey is shown on the next visible Activity. - fix: [impact: behavior] If the survey WebView is reset while the in-app browser is open, the survey now ends cleanly with its close lifecycle events and a “Your survey session has ended.” message, instead of being left unfinished.
- change: [impact: behavior] Session replays shorter than 3 seconds are no longer uploaded;
replayCaptureStoppedfires with reasonREPLAY_TOO_SHORT. - fix: [impact: behavior] When session replay capture is too expensive on the main thread, the replay captured so far is now rendered and uploaded before replays shut down.
- fix: [impact: behavior] Improved session replay reliability: fixed encoding failures on some screen sizes and intermittent upload loss.
- fix: [impact: accessibility] In-app browser controls now have accessibility labels and descriptions, and its footer stays reachable for screen readers.
v2.30.1
Recommended if you use: Session Replays- add: [impact: performance]
turnOffSessionReplayCapture()turns session replay off for the rest of the app session. It replacesstopRecording(), now deprecated, which no longer stops only the recording in progress. - fix: [impact: performance] Session replay now stops for the rest of the app session under sustained memory pressure or when capture costs the main thread more than the configured threshold, rather than restarting on the next request.
v2.30.0
Recommended if you use: URL Prompt Question Type- chore: Updated the bundled Web SDK to v2.53.0, which carries survey enhacements into this release.
- add: [impact: behavior] Added the ability to launch an in-app web browser for URL Prompt question types.
- add: Added new lifecycle event displayInAppBrowser which fires when the in-app experience is triggered.
v2.29.0
Recommended if you use: survey lifecycle events, or apps with multiple Activities- chore: Updated the bundled Web SDK to v2.51.0, which carries its survey and Session Replay fixes into this release.
- add: [impact: behavior] Refactor of the survey lifecycle events for better accuracy with the addition of the new surveyReturned event, the removal of surveyWillPresent, a change to when the surveyAppeared emits and the addition of the new surveyDidNotAppear event.
- add: Passing the surveyId of the previous survey when a previousSurveyReady state is returned.
- fix: [impact: performance] Memory leak fix for multiple Activities.
v2.24.0
- add: Updated WebSDK to v2.44.0
- add: New function to override device light/dark mode in surveys
- fix: Ensure light/dark mode is always enabled for current activity
- fix: Certain lifecycle events are no longer reported twice
- chore: The surveyId in SprigSurveyResult is no longer optional, keeping in parity with iOS
v2.23.0
- add: Updated WebSDK to v2.43.0
- add: Survey ID provided in track callbacks via new SprigSurveyResult
- add: New PREVIOUS_SURVEY_READY state to indicate pending surveys
- add: New SURVEY_STATE_RETURNED and SURVEY_COMPLETED lifecycle events
- add: Light/dark mode support with custom CSS
- fix: Pending surveys now cause newly tracked surveys to be ignored
v2.19.4
- add: Updated WebSDK to v2.39.3
- add: Support for the new Conversational format for In-Product Surveys
- add: Support for SURVEY_WILL_PRESENT lifecycle event
- add: Support for SURVEY_PRESENTED lifecycle event
- add: Support for SURVEY_WILL_CLOSE lifecycle event
- add: Support for SURVEY_CLOSED lifecycle event
- add: Support for SURVEY_HEIGHT lifecycle event
- fix: Removed SURVEY_DIMENSIONS lifecycle event no longer being emitted
v2.19.0
- add: Updated WebSDK to v2.37.1
- add: Support for new Rank Order question type
- add: Response piping support
- fix: Improved keyboard behavior for text input questions
- fix: Improved survey dismiss behavior under certain app state changes
- fix: Improved Android activity management for multiple app activities
v2.18.0
- add: Additional Sprig lifecycle events available to monitor
- add: Web views are now included in session replay recordings
- fix: Session replay attached to surveys are only uploaded after a question has been answered
- fix: Increase display size of tap gesture
- fix: Start-up performance optimizations