Skip to main content

loplat - Braze SDK Integration Guide

loplat - Braze SDK Integration Architecture

  • The Braze User ID value set in the loplat SDK is linked with the Braze server, and a user's location recognition event is sent through loplat X. image-braze-integrated_00

Android

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

iOS

Add the code below to the 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)
}
}

// ...
}