How android-sms-gateway/server works
Main Components
a) Core Server Components:
• HTTP Server Layer (handling REST API endpoints)
• Authentication Module (for private mode access control)
• Device Management Service
• Message Processing Service
• Webhook Service
• Health Monitoring System
• Metrics Collection System
b) External Services:
• Firebase Cloud Messaging (FCM) Integration
• MySQL/MariaDB Database
• Upstream API Service (for private mode notifications)
Key Relationships to Highlight
• Client Applications → HTTP API Layer
• Android Devices ↔ Server (via REST API)
• Server ↔ FCM (for push notifications)
• Server ↔ Database (for persistence)
• Server ↔ Webhook Consumers (for notifications)
Detailed Component Breakdown
• Auth Module (auth/)
• Device Management (devices/)
• Message Handling (messages/)
• Push Notifications (push/)
• Webhook Management (webhooks/)
• Health Monitoring (health/)
• Metrics Collection (metrics/)
Two Mode Representations
• Public Mode Operation
• Private Mode Operation (with additional security layer)
Architectural Patterns to Emphasize
• Modular architecture (based on the internal/sms-gateway/modules structure)
• RESTful API design
• Event-driven architecture (webhooks)
• Database migration system
• Health check system
Technical Details
Annotations for:
• API endpoints (/api/mobile/v1/*)
• Database migrations (from db/migrations)
• Configuration options (from configs/)
• Deployment options (Docker/Docker Swarm)