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.
Android
- Start Android loplat SDK
- Set Braze UserID
Plengi.getInstance(context).setBrazeUserId(brazeId);
iOS
- Start iOS loplat SDK
- Reference: https://developers.loplat.com/en/ios/
- No settings required. (Based on Appboy 4.5.2)
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)
}
}
// ...
}