Smart TV integration
The Braze Web SDK lets you collect analytics and display rich in-app messages and Content Card messages to Smart TV users, including Samsung Tizen TVs and LG TVs (webOS). This article covers how to use the Braze Web SDK to integrate with Smart TVs.
Install the Braze SDK
To get started, follow our Initial SDK setup guide for the Web SDK.
There are two changes required when integrating with Smart TVs:
- When downloading or importing the Web SDK, be sure to use the “core” bundle (available at https://js.appboycdn.com/web-sdk/x.y/braze.core.min.js, where x.y is the desired version). We recommend using the CDN version of our Web SDK, since the NPM version is written in native ES modules whereas the CDN version is transpiled down to ES5. If you prefer to use the NPM version, ensure you are using a bundler such as webpack that will remove unused code and that the code is transpiled down to ES5.
- When initializing the Web SDK, you must set the
manageServiceWorkerExternallyinitialization options to
All of the same Web SDK methods for analytics can be used on Smart TVs.
For a complete guide to tracking custom events, custom attributes, and more, read our Analytics documentation.
In-app messages and Content Cards
The Braze Web SDK supports both in-app messages and Content Cards on Smart TVs. Note that you must use the “Core” Web SDK as rendering in-app messages and Content Cards is not supported using our standard UI display and should instead be customized by your app to fit into your TV App’s experience.
Visit Manual in-app message display for more information on how your Smart TV App can receive and display in-app messages.