How can I send a Firebase Cloud Messaging notification without use the Firebase Console?

后端 未结 16 1588
南旧
南旧 2020-11-22 10:17

I\'m starting with the new Google service for the notifications, Firebase Cloud Messaging.

Thanks to this code https://github.com/firebase/quickstart-a

16条回答
  •  广开言路
    2020-11-22 11:04

    As mentioned by Frank, you can use Firebase Cloud Messaging (FCM) HTTP API to trigger push notification from your own back-end. But you won't be able to

    1. send notifications to a Firebase User Identifier (UID) and
    2. send notifications to user segments (targeting properties & events like you can on the user console).

    Meaning: you'll have to store FCM/GCM registration ids (push tokens) yourself or use FCM topics to subscribe users. Keep also in mind that FCM is not an API for Firebase Notifications, it's a lower-level API without scheduling or open-rate analytics. Firebase Notifications is build on top on FCM.

提交回复
热议问题