Skip to main content

Push Notifications

Overview

Evatar's push notification system supports broadcasting messages to all registered devices. When the intent reasoner generates new articles, the system automatically pushes notifications to all devices. Current implementation uses Webhook mode, with FCM HTTP v1 as a reserved extension point.

Push Triggers

TriggerTitleContent
Reasoner generates articles"Evatar New Notes""Generated N notes: title1, title2"
Manual broadcastCustomCustom
Test push"Evatar Test Notification""This is a test push notification."

Configuration

VariableDescriptionDefault
EVATAR_PUSH_WEBHOOK_URLWebhook push URLEmpty (log only)
EVATAR_FCM_PROJECT_IDFCM project ID (reserved)Empty
EVATAR_FCM_CREDENTIALS_JSONFCM service account JSON (reserved)Empty

API Endpoints

MethodPathDescription
POST/api/push/registerRegister/update device
GET/api/push/devicesList all registered devices
DELETE/api/push/devices/{device_id}Remove device
POST/api/push/testSend test push to device
POST/api/push/broadcastBroadcast to all devices