Smart TV Integration
Install the Braze SDK
To get started, please 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 which can be found here: https://www.npmjs.com/package/@braze/web-sdk-core.
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, please read our Analytics Documentation.
In-App Messages and Content Cards
Braze’s Web SDK supports both In-App Messages and Content Cards on Smart TVs. Please note: 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.
To learn more on how your Smart TV App can receive and display In-App Messages, see our guide to manually displaying In-App Messages.