Notifications

Push notification broadcast via Firebase Cloud Messaging

β€”

Registered devices

FCM

HTTP v1 Β· Service Account

Quick Presets

Compose Notification

0/100
0/300

Sending to: All Users

Automated Event Triggers

These push notifications are sent automatically by the system when events occur. You don't need to trigger them manually.

Gamification

badge_earnedstreak_milestone

Subscriptions

trial_startedtrial_endingtrial_expiredpayment_failedsubscription_activatedsubscription_expired

P2P Challenges

challenge_receivedchallenge_acceptedchallenge_declinedchallenge_wonchallenge_lostchallenge_tie

Social

friend_request_receivedfriend_request_acceptedwelcome

Infrastructure

β†’FCM HTTP v1 β€” service account auth via Google Auth Library, tokens cached in memory
β†’Device tokens β€” stored in Redis as fcm_token:<userId> with 90-day TTL
β†’Email β€” automated emails via Resend API with template system
β†’Broadcasts use parallel batches of 50 to avoid rate limits
β†’Invalid/expired tokens are auto-cleaned on 400/404 FCM responses