Skip to content

Braze SDK 연동 가이드

Braze-loplat SDK 연동 구조

  • loplat SDK에 설정된 Braze의 User ID 값은 위치인식 결과를 loplat X를 통하여, Braze 서버와 연동된다. image-braze-integrated_00

Android 앱에서 설정

    Plengi.getInstance(context).setBrazeUserId(brazeId);

iOS 앱에서 설정

application(:didFinishLaunchingWithOptions) 안에 아래 코드를 추가해주세요.

//AppDelegate.swift

import MiniPlengi
import BrazeKit

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  // ...

  Plengi.initialize()

  let configuration = Braze.Configuration(
    apiKey: "<BRAZE_API_KEY>",
    endpoint: "<BRAZE_ENDPOINT>"
  )

  let braze = Braze(configuration: configuration)
  braze.changeUser(userId: "<YOUR_BRAZE_ID>")

  braze.user.id() { id in
  if let brazeID = id {
      Plengi.setBrazeUserID(userID: brazeID)
    }
  }

  // ...
}