이 페이지는 AI로 자동 번역되었으며 부정확한 내용이 포함될 수 있습니다. 번역 오류를 신고하려면 페이지 오른쪽 목차 아래에 있는 피드백 기능을 사용하세요.
Flutter SDK 리포지토리 가이드
Braze Flutter SDK 소개
Braze Flutter SDK를 사용하면 Braze 메시징, 분석, 사용자 인게이지먼트 기능을 애플리케이션에 통합할 수 있습니다.
시작하려면 다음 리소스를 참조하세요.
빠른 시작
다음 스니펫은 앱에 Braze Flutter SDK를 추가하는 데 필요한 최소 구성을 보여줍니다.
flutter pub add braze_plugin
Android
<!-- android/res/values/braze.xml -->
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string translatable="false" name="com_braze_api_key">YOUR_APP_IDENTIFIER_API_KEY</string>
<string translatable="false" name="com_braze_custom_endpoint">YOUR_CUSTOM_ENDPOINT_OR_CLUSTER</string>
</resources>
<!-- AndroidManifest.xml -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
iOS
// AppDelegate.swift
import BrazeKit
import braze_plugin
class AppDelegate: UIResponder, UIApplicationDelegate {
static var braze: Braze? = nil
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
) -> Bool {
// Setup Braze
let configuration = Braze.Configuration(
apiKey: "<BRAZE_API_KEY>",
endpoint: "<BRAZE_ENDPOINT>"
)
// - Enable logging or customize configuration here
configuration.logger.level = .info
BrazePlugin.configure(configuration)
AppDelegate.braze = AppDelegate.braze
return true
}
}
Dart
import 'package:braze_plugin/braze_plugin.dart';
// ...
_braze = new BrazePlugin();
_braze.initialize("<BRAZE_API_KEY>", "<BRAZE_ENDPOINT>");
// ...
_braze.changeUser("Jane Doe");
고급 통합 옵션에 대한 자세한 내용은 Braze 개발자 가이드를 참조하세요.
버전 지원
다음 표에는 Braze Flutter SDK에서 사용하는 도구의 최소 지원 버전이 나와 있습니다.
| 도구 | 최소 지원 버전 |
|---|---|
| Dart | 3.12.0+ |
| Flutter | 3.44.0+ |
| iOS 배포 대상 | 15.0+ |
이 SDK는 기반이 되는 Braze 네이티브 SDK의 요구 사항도 그대로 따릅니다. 자세한 내용은 braze-inc/braze-android-sdk 및 braze-inc/braze-swift-sdk를 참조하세요.
샘플 앱
/example 폴더에는 이 패키지의 API를 통합하고 사용하는 방법을 보여주는 샘플 앱이 포함되어 있습니다.
문의
궁금한 점이 있으면 Braze 기술 지원팀에 문의하여 도움을 받으세요.
리포지토리 세부 정보와 샘플 프로젝트는 https://github.com/braze-inc/braze-flutter-sdk를 참조하세요.
New Stuff!