Notifications
Push notification broadcast via Firebase Cloud Messaging
β
Registered devices
FCM
HTTP v1 Β· Service Account
Quick Presets
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