The steps behind serving those notifications, whether they are based on the topic or standard ones, are similar; so typically, what we're doing for this to work is the following:
- We're specifying our routes; typically, they will be based on our dashboard routes.
- We're fetching the overall registration IDs, the one that belongs to and represents a specific client or user within our system, and is unique per user.
- We're specifying the message payload (content).
- We're using the Firebase Admin SDK messaging API to send our message to our users, whether it is via a normal message or topic-based sending.