Leanplum Customer Engagement platform for collecting data, messaging and A/B testing across web and mobile.
- ## [1.11.3](https://github.com/Leanplum/Leanplum-JavaScript-SDK/compare/1.11.2...1.11.3) (2023-08-22)
- ### Bug Fixes
- * allow unsubscribing multiple inbox change handlers ([c413d0b](https://github.com/Leanplum/Leanplum-JavaScript-SDK/commit/c413d0bef337cb1ae9342df9dcad829457b3e095))
- What's new:
- - Add the `defineAction` method that enables development of custom message templates. (#138)
- - Add the `setLocale` method to allow to set a new locale (#140, thanks to @wil93)
- What's fixed:
- - Dev mode connection to dev server is not always correctly established (#142)
- - The `downloadMessages` callback is sometimes called with a null value (#139, thanks to @alberto911)
- What's new:
- - The "Register for push" app function can now be used (#123, #124)
- What's fixed:
- - Support for chained messages created in Messaging (#128)
- What's new:
- - Additional data for App Inbox messages can be accessed through the `.data()` method. (#122)
- What's fixed:
- - Resolve deprecated API warning when rendering In-App messages. (#121)
- What's new:
- - When triggering an `Open URL` action, there's a preventable `openUrl` event that allows integration code to handle it, instead of using `window.location` directly. (#118)
- What's fixed:
- - Lifetime occurrences were not counted correctly when starting new sessions. (#119)
- What's new:
- - Rich In-App message rendering.
- Update tag name and description
- What's new:
- - Call `useSessionLength()` when loading SDK to ensure sessions are deduplicated.
- What's new:
- - In-App Messages: subscribe to the `showMessage` event for custom rendering of in-app messages.
- See the [Web In-App messages help topic](https://docs.leanplum.com/v1/reference#web-in-app-messages) for more information.
- - `getFileUrl` method that resolves a filename to link to the [downloadFile API](https://docs.leanplum.com/reference#get_api-action-downloadfile).
- - `on` and `off` methods for subscribing to events
- - `getUserId` method for getting the ID of the current user
- What's fixed:
- - JS error when the development socket closes due to an error (#95)