How radarlabs/radar-sdk-ios works
Project Type and Purpose
This is a native iOS SDK project that provides location services, geofencing, and tracking capabilities. It's designed to be integrated into other iOS applications as a dependency.
Main Components
A. Core SDK Layer (RadarSDK)
• Location Services Management
• API Communication
• Event Handling
• Configuration Management
• Storage Management
B. Motion SDK Layer (RadarSDKMotion)
• Motion Detection Services
• Activity Recognition
C. External Interfaces
• iOS Location Services
• Radar Backend API
• Client Applications
┌─────────────────────────────────────────────────────────────┐
• Client Application │
• ┘
• ↕
┌─────────────────────────────────────────────────────────────┐
• RadarSDK Core │
• ┬──────────────────┬────────────────────────┤
• Location Manager│ API Client │ Event Handler │
• ┼──────────────────┼────────────────────────┤
• Geofencing │ Context Manager │ Trip Tracking │
• ┼──────────────────┼────────────────────────┤
• Place Detection │ User Management │ Verification System │
• ┴──────────────────┴────────────────────────┘
• ↕
┌─────────────────────────────────────────────────────────────┐
• RadarSDKMotion │
• ┘
• ↕
┌─────────────────────────────────────────────────────────────┐
• iOS Platform Services │
• ┘
• ↕
┌─────────────────────────────────────────────────────────────┐
• Radar Backend API │
• ┘
Important Implementation Details to Highlight
Key Managers:
• RadarLocationManager
• RadarAPIClient
• RadarActivityManager
• RadarVerificationManager
• RadarBeaconManager
Data Models:
• RadarUser
• RadarEvent
• RadarContext
• RadarPlace
• RadarGeofence
Integration Points
• SDK initialization flow
• Permission handling
• Tracking options configuration
• Event delegation pattern
Optional components
• How the SDK integrates with their applications
• The flow of location data through the system
• How different components interact
• Where to implement custom behavior
• How to debug issues