Skip to main content

General

Push Notifications

Send push notifications via Firebase Cloud Messaging (FCM).

Send push notifications to mobile devices using Firebase Cloud Messaging (FCM). Supports both the modern HTTP v1 API and legacy API.

Configuration Parameters

ParameterRequiredTypeDescription
FCM_V1NoboolUse v1 API (default: true)
ProjectIdYesstringFirebase project ID
AccessTokenYesstringOAuth2 bearer token from service account
TokenYesstringDevice FCM token
TitleYesstringNotification title
BodyYesstringNotification body

FCM Legacy API

ParameterRequiredTypeDescription
FCM_V1NoboolSet to false for legacy
ServerKeyYesstringFCM server key
TokenYesstringDevice FCM token
TitleYesstringNotification title
BodyYesstringNotification body

Example Configuration (v1)

FCM_V1 = true
ProjectId = my-firebase-project
AccessToken = ya29.xxxxxxxxxxxxxxx
Token = device-fcm-token-here
Title = Machine Alert
Body = Conveyor belt stopped unexpectedly

Internal Behavior

  • Priority: High priority for immediate delivery
  • Retry: Automatic retry on 5xx errors
  • Timeout: 15 seconds per request