Search packages, repositories and app categories

Package detailsv23.0.0

braze_plugin

This is the Braze plugin for Flutter. Effective marketing automation is an essential part of successfully scaling and managing your business.

AndroidiOS
30-day downloads
163K
Likes
33
Pub points
150

Install package

flutter pub add braze_plugin

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The Braze plugin for Flutter enables seamless integration of Braze's marketing automation and analytics capabilities into Flutter applications. It allows developers to track user behavior, send personalized push notifications, manage in-app messages, and segment audiences based on real-time data. With support for both Android and iOS, the plugin facilitates cross-platform engagement strategies. The SDK is designed to be lightweight and easy to implement, enhancing user retention and campaign effectiveness through data-driven insights.

Use cases

  • User behavior tracking
  • Personalized push notifications
  • In-app message delivery
  • Audience segmentation
  • Campaign performance analytics

Key features

  • Cross-platform support (Android & iOS)
  • Real-time analytics
  • Push notification management
  • In-app messaging
  • User journey personalization

Suitable for

  • Mobile apps with marketing needs
  • Teams using Braze for customer engagement
  • Apps focused on user retention
  • Product teams needing behavioral insights
  • Developers building data-driven experiences

Considerations

  • Requires Braze account setup
  • Needs API key configuration
  • May require backend coordination
  • Dependent on Braze service availability
  • Potential privacy compliance considerations

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Braze Logo Braze Logo

Braze Flutter SDK latest release

Quickstart

The following snippets show the minimum configuration required to add the Braze Flutter SDK to your app.

flutter pub add braze_plugin
Android
<!-- android/res/values/braze.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string translatable="false" name="com_braze_api_key">YOUR_APP_IDENTIFIER_API_KEY</string>
  <string translatable="false" name="com_braze_custom_endpoint">YOUR_CUSTOM_ENDPOINT_OR_CLUSTER</string>
</resources>
<!-- AndroidManifest.xml -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
iOS
// AppDelegate.swift
import BrazeKit
import braze_plugin

class AppDelegate: UIResponder, UIApplicationDelegate {
  static var braze: Braze? = nil

  func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
  ) -> Bool {
    // Setup Braze
    let configuration = Braze.Configuration(
      apiKey: "<BRAZE_API_KEY>",
      endpoint: "<BRAZE_ENDPOINT>"
    )
    // - Enable logging or customize configuration here
    configuration.logger.level = .info
    let braze = BrazePlugin.initBraze(configuration)
    AppDelegate.braze = braze

    return true
  }
}
Dart
import 'package:braze_plugin/braze_plugin.dart';

// ...
_braze = new BrazePlugin();

// ...
_braze.changeUser("Jane Doe");

For more information about advanced integration options, see the Braze Developer Guide.

Version support

The following table lists the minimum supported versions for tools used by the Braze Flutter SDK.

Tool Minimum supported version
Dart 2.17.0+
Flutter (integration via CocoaPods) 1.10.0+
Flutter (integration via CocoaPods or Swift Package Manager) 3.24.0+
iOS Deployment Target 12.0+

This SDK also inherits requirements from the underlying Braze native SDKs. For more information, see braze-inc/braze-android-sdk and braze-inc/braze-swift-sdk.

Sample App

The /example folder contains a sample app that illustrates how to integrate and use this package's APIs.

Contact

For questions, contact Braze Technical Support for assistance.

Categories

Source repository

Projects using this package

No data available yet.