braze_plugin 0.0.2
braze_plugin: ^0.0.2 copied to clipboard
Braze plugin for Flutter.
Braze Flutter SDK #
Effective marketing automation is an essential part of successfully scaling and managing your business. Braze empowers you to build better customer relationships through a seamless, multi-channel approach that addresses all aspects of the user life cycle Braze helps you engage your users on an ongoing basis.
This project contains the Braze plug-in package, a specialized package that allows integrators to use certain Braze APIs from Flutter app code written in Dart.
Getting Started #
- Add the following to your
pubspec.yaml
:
dependencies:
braze_plugin: ^0.0.1
- Import Braze into your dart source using the following import:
import 'package:braze_plugin/braze_plugin.dart';
- Instantiate an instance of the Braze plugin by calling
new BrazePlugin()
Android
-
In your
res/values
directory, create a file calledappboy.xml
and add your API key and set your custom endpoint as specified in our public documentation. -
Add required permissions to your
AndroidManifest
, as specified in our public documentation. -
To integrate push, follow the directions in our [public documentation(https://www.braze.com/docs/developer_guide/platform_integration_guides/android/push_notifications/integration/). Note that only registration using our "automatic FCM registration" is currently supported from Flutter apps.
iOS
-
Call
Appboy.startWithApiKey()
in yourAppDelegate
'sdidFinishLaunchingWithOptions
delegate method as specified in our [public documentation])(https://www.braze.com/docs/developer_guide/platform_integration_guides/ios/initial_sdk_setup/initial_sdk_setup/#step-4-updating-your-app-delegate). -
Set your custom endpoint as specified in our public documentation. We recommend the
Info.plist
approach.