Skip to content

SDK overview

The Braze SDK makes it easy to collect session data, identify users, and record purchases and custom events through your website or app. You can also use the SDK to engage with your users by sending in-app messages and push notifications directly from the Braze dashboard.

In brief, the Braze SDK:

  • Collects and syncs user data into a consolidated user profile
  • Captures marketing engagement data and custom data specific to your business
  • Powers push notifications, in-app messages, and Content Card messaging channels

What is an SDK?

A software development kit (SDK) is a set of pre-made tools—just small blocks of code—that can be added to digital applications to support new capabilities. The Braze SDK is used to send and get information to and from your app or site. It’s designed to provide essential functionality right from the start: creating user profiles, logging custom events, triggering push notifications, etc.

Because this functionality comes default from Braze, your developers are freed up to focus on your core business. Without an SDK, every Braze client would have to create all the infrastructure and tools for data processing, segmentation logic, delivery options, anonymous user handling, campaign analytics, and a lot more completely from scratch. That would take a lot longer and be way more of a pain than the hour or so it takes to incorporate our SDK.

Implementation

To incorporate an SDK into your app or site, someone will need to add the SDK’s code to the larger overall code base powering that application. This means your Engineering team will be involved, essentially tying our apps together so that information and actions flow between them. But although your developers are involved, the SDK is designed to be lightweight and user-friendly to integrate.

For the sake of saving you time and ensuring a smooth integration, we recommend you and your Engineering team set up your custom events, custom attributes, and the SDK at the same time. Learn more about the steps that your Marketing and Engineering teams will need to think through together by reading our implementation article.

Data aggregation

The Braze SDK automatically captures immense amounts of data at the user level, making it easy to see key metrics for your app and user base. You will group similar apps into a single workspace on your dashboard. For example, you will group the iOS and Android versions of your app into the same workspace, allowing you to see the collected data from users across both platforms. This gives you a more complete view of your users across web and mobile channels. See the article on the Home page for more information.

In-app messaging

The SDK makes it easy to compose and send in-app messages to engage with users directly. You can choose to send slideup, modal, or fullscreen messages based on your campaign strategy. For more information on composing an in-app message, see our page on creating an in-app message.

Push displayed on a web browser

Push notifications

Push notifications are another great option to engage with your users and are especially useful to handle time-sensitive calls to action. Mobile push notifications appear on your users’ devices, and web push notifications appear even when your site is not open. For specifics on using push notifications, see our push notification article.

Users of your website or app need to opt-in to receive push notifications. See push priming for more details.

Segmentation and delivery rules

By default, a campaign containing in-app messages will be sent to all versions of the app in that workspace. For example, the message will send to both web and mobile users. To send an in-app message exclusively to web or mobile, you will need to segment your campaign accordingly, which is supported by default through the Braze SDK.

You can create a segment of your web users by selecting only your website’s app icon in the Apps Used section of a segment.

Segment Details page with web app selected

This will allow you to target users based on their behavior in an intelligent way. If you wanted to target web users to encourage them to download your mobile app, you’d create this segment as your target audience. If you wanted to send a messaging campaign that included a mobile in-app message but not a web message, you would uncheck your website’s icon in your segment.

What integrations does Braze have?

Braze offers a version of our SDK for many platforms (web, Android, iOS, Flutter, React Native, and more), but they all operate essentially the same way. So, if you see a reference to, say, the “Web SDK,” it’s just the version of the Braze SDK intended for your website.

Featured integrations    
Android Android iOS Web
All integrations    
Cordova Android Cordova Android Cordova iOS Cordova iOS Flutter Android and iOS Flutter Android and iOS
React Native React Native tvOS tvOS MacOS MacOS
Unity Android Unity Android Unity iOS Unity iOS Xamarin Xamarin
Roku Roku Unreal Engine Unreal Engine  
HOW HELPFUL WAS THIS PAGE?
New Stuff!