Firebase Cloud Messaging

API

Send push notifications to devices and topics from your server

Fiyat
No-cost Cloud Messaging
Erişim
OAuth 2.0 access token

Hakkında

Firebase Cloud Messaging sends notification and data messages to registered app devices or topics. The HTTP v1 API accepts a short-lived OAuth 2.0 access token; Firebase Admin SDKs can handle authentication and message construction on trusted servers.

Neler yapabilirsin

  • Send a push notification to a device registration token
  • Broadcast a message to devices subscribed to a topic
  • Send platform-specific notification or data payloads

Başlarken

  1. Create a Firebase project and enable the Cloud Messaging API
  2. Obtain a device registration token in your app
  3. Generate a service account OAuth access token on a trusted server

Örnek kod

curl -X POST "https://fcm.googleapis.com/v1/projects/$FIREBASE_PROJECT_ID/messages:send" \
  -H "Authorization: Bearer $FCM_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"message":{"token":"DEVICE_REGISTRATION_TOKEN","notification":{"title":"Hello","body":"New update"}}}'

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
JavaScript/TypeScript, Python, Java, Go, C#
MCP sunucusu
Yerel sunucu
Entegrasyonlar
Google Cloud

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .