How braze-inc/braze-swift-sdk works
Main Components Overview
The system should be divided into these primary components:
Core SDK Components:
• BrazeKit (Analytics & Push Notifications)
• BrazeUI (User Interface Components)
• BrazeLocation (Location Services)
• BrazeNotificationService (Rich Push Notifications)
• BrazePushStory (Push Stories)
Detailed Architecture Breakdown
a) Core Layer (BrazeKit):
• Analytics Engine
• Push Notification Handler
• Data Collection Services
• SDK Configuration
• Authentication Services
b) UI Layer (BrazeUI):
• In-App Messaging System
• Content Cards Interface
• Banner Management
• Custom UI Components
• Localization Support (extensive, as seen in Resources/Localization)
c) Service Extensions:
• Notification Service Extension
• Push Story Extension
• Location Services
Integration Points
• Mobile App Integration Points
• Backend Services Communication
• Push Notification Infrastructure
• Analytics Data Flow
Specific Implementation Details
• Blue rectangles: Core SDK modules
• Green rectangles: UI components
• Yellow diamonds: Service extensions
• Red circles: Integration points
• Gray rectangles: Resource bundles
Data Flow Representation
• Analytics data flow to Braze servers
• Push notification path
• Location data processing
• Content delivery mechanisms
Component Relationships
Mobile App
• ↓
BrazeKit (Core)
• ↙ ↓ ↘
BrazeUI BrazeLocation BrazeNotificationService
• ↓ ↓ ↓
User Interface Location Push
Components Services Notifications
Cross-Platform Support
Platform-specific implementations for:
• iOS
• tvOS
• visionOS
• Mac Catalyst
Key Features to Highlight
• Analytics & User Tracking
• Push Notification Systems
• In-App Messaging
• Content Cards
• Location Services
• Rich Push Notifications
• Push Stories
Integration Methods
Support for:
• Swift Package Manager
• CocoaPods
• Manual Integration
Resource Management
Include:
• Localization Bundles
• Asset Management
• Configuration Files
• Core SDK Components
• UI Layer
• Service Extensions
• Platform-Specific Implementations
• Component types
• Data flow directions
• Platform support indicators
• Integration method indicators