Skip to content

References, repositories, and sample apps

This is a list of reference documentation, GitHub repositories, and sample apps belonging to each Braze SDK. An SDK’s reference documentation details its available classes, types, functions, and variables. While the Github repository provides insight into that SDK’s function and attribute declarations, code changes, and versioning. Each repository also includes fully-buildable sample applications you can use to test Braze features or implement alongside your own applications.

List of resources

Building a sample app

Building “Droidboy”

Our test application within the Android SDK GitHub repository is called Droidboy. Follow these instructions to build a fully functional copy of it alongside your project.

  1. Create a new workspace and note the Braze API identifier key.

  2. Copy your FCM sender ID and Braze API identifier key into the appropriate places within /droidboy/res/values/braze.xml (in between the tags for the strings named com_braze_push_fcm_sender_id and com_braze_api_key, respectively).

  3. Copy your FCM server key and server ID into your workspace settings under Manage Settings.

  4. To assemble the Droidboy APK, run ./gradlew assemble within the SDK directory. Use gradlew.bat on Windows.

  5. To automatically install the Droidboy APK on a test device, run ./gradlew installDebug within the SDK directory:

Building “Hello Braze”

The Hello Braze test application shows a minimal use case of the Braze SDK and additionally shows how to easily integrate the Braze SDK into a Gradle project.

  1. Copy your API identifier key from the Manage Settings page into your braze.xml file in the res/values folder.

  2. To install the sample app to a device or emulator, run the following command within the SDK directory:
    1
    
    ./gradlew installDebug
    

    If you don’t have your ANDROID_HOME variable properly set or don’t have a local.properties folder with a valid sdk.dir folder, this plugin will also install the base SDK for you. See the plugin repository for more information.

For more information on the Android SDK build system, see the GitHub Repository README.

Building Swift test apps

Follow these instructions to build and run our test applications.

  1. Create a new workspace and note the app identifier API key and endpoint.
  2. Based on your integration method (Swift Package Manager, CocoaPods, Manual), select the appropriate xcodeproj file to open.
  3. Place your API key and your endpoint within the appropriate field in the Credentials file.
HOW HELPFUL WAS THIS PAGE?
New Stuff!