Initial SDK Setup

Installing the Braze SDK will provide you with analytics functionality, as well as push and in-app messages.

Step 1: Get the SDK

iOS with podspec

  1. npm install react-native-appboy-sdk@latest --save
  2. Add pod 'react-native-appboy-sdk', :path => '../node_modules/react-native-appboy-sdk' to your app target in your Podfile. Note that the react-native-appboy-sdk pod has a dependency on the React pod.
  3. Run pod install from your ios directory.

iOS without podspec

  1. Install the Braze iOS SDK into your iOS project. See instructions for Cocoapods here. For manual integration, please check here. See notes below for further information.
  2. npm install react-native-appboy-sdk@latest --save
  3. In the Xcode’s “Project navigator”, right click on your project’s Libraries folder ➜ Add Files to <...>
  4. Go to node_modulesreact-native-appboy-sdkiosAppboyReactBridge ➜ select AppboyReactBridge.xcodeproj
  5. Add libAppboyReactBridge.a to Build Phases -> Link Binary With Libraries
  6. Update the ‘Header Search Paths’ in the AppboyReactBridge Xcode project to reference the headers directory of your installation of the Braze iOS SDK.

iOS completing the integration

  1. Follow the directions at to finish your integration. In particular, you will need to pass your Braze API key to the SDK in startWithApiKey in your App delegate’s didFinishLaunchingWithOptions: method and set up your custom endpoint in your Info.plist file.
  2. When you need to make Braze calls from javascript, use the following declaration to import the javascript module:
const ReactAppboy = require('react-native-appboy-sdk');
New Stuff!