🔔
Notification System
Multi-channel notification: Push, Email, SMS, LINE, In-App, and Webhook — keep users informed at the right time.
🔄 Notification Architecture Flow
📋 Notification Flow Step by Step
1
⚡Trigger
Event occurs: order placed / payment received / new message / cron job (scheduled)
2
⚙️API Server
Detect event → Create notification payload (title, body, data, recipient)
3
🔔Notification Svc
Look up user preferences: which channels enabled (push/email/SMS)
4
🔀Channel Router
Route to appropriate channels based on user settings and notification type
5
📱Push (FCM/APNs)
For mobile apps: send push via Firebase (Android) or APNs (iOS) using device token
6
📧Email Service
For email: use SMTP/SendGrid/SES to send HTML email with unsubscribe link
7
💬SMS/LINE
For SMS: use Twilio/DTAC API. For LINE: use LINE Messaging API with channel token
8
🗄️Database
Log notification: sent_at, channel, status (delivered/failed), read_at
9
🔴Frontend
Show in-app notification badge + notification list (bell icon)
10
✅User
Read notification → Mark as read → Click to navigate to relevant page
📡 Notification Channels Comparison
📱
Push Notification
FCM (Android) / APNs (iOS)
✅ Pros: Real-time, works without app open, high open rate
⚠️ Cons: Requires permission, can be blocked
📧Email
SendGrid / AWS SES / SMTP
✅ Pros: Rich content, HTML template, attachment support
⚠️ Cons: May land in spam, not real-time
📱
SMS
Twilio / DTAC / AIS API
✅ Pros: Works without internet, very high open rate (98%)
⚠️ Cons: Cost per message, character limit (160)
💚
LINE Notify
LINE Messaging API
✅ Pros: Popular in Thailand, free for basic, rich messages
⚠️ Cons: Must have LINE app, Thailand-focused
🔔
In-App Notification
WebSocket / SSE / Polling
✅ Pros: Real-time in-app, no extra permission needed
⚠️ Cons: Only visible when using the app/website
🔗
Webhook
HTTP POST to endpoint
✅ Pros: System-to-system, automated workflows, reliable
⚠️ Cons: Developer-facing only, needs endpoint setup
Need a notification system? 🔔
We implement multi-channel notifications: Push, Email, SMS, LINE for web and mobile apps.
← Back to LearnContact Us