---
title: "Discussion on \"Build a Push Notification Service Using FCM, Golang and MongoDB\" | Hashnode"
description: "Discussion on \"Build a Push Notification Service Using FCM, Golang and MongoDB\". Build a push notification service using Golang, Firebase and MongoDB."
url: "https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a Push Notification Service Using FCM, Golang and MongoDB](https://tosinjs.hashnode.dev/build-a-push-notification-service-using-fcm-golang-and-mongodb?utm_source=hashnode&utm_medium=feed)

Build a push notification service using Golang, Firebase and MongoDB.

Mar 8, 2023 · 11 min read · tosinjs.hashnode.dev  
Read the article

-   [#firebase](https://hashnode.com/tag/firebase)
-   [#golang](https://hashnode.com/tag/golang)
-   [#push-notifications](https://hashnode.com/tag/push-notifications)
-   [#firebase-messaging](https://hashnode.com/tag/firebase-messaging)

## Written by

[TosinJs](https://hashnode.com/@TosinJs)

@TosinJs

  
[View profile](https://hashnode.com/@TosinJs)

Software Engineer

I am a software engineer who enjoys learning new stuff

## Responses 1

Markdown supported · ⌘↵ to post

[George Onyango](https://hashnode.com/@SnowTech)

[Oct 29, 2024](https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa/comment/67212584571f5b70060fc12d)

I can not see where you are creating the token. I can see the insert to the db.

[TosinJs](https://hashnode.com/@TosinJs)

[Oct 29, 2024](https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa/comment/67212584571f5b70060fc12d#reply-6721567c7c4dbf0753449b61)

Hello [George Onyango](https://hashnode.com/@SnowTech), thanks for reading the article.

The tokens are generated by Firebase and sent to the client-side application, which could be web, iOS, Android, etc. The Firebase docs explain how to get the tokens: [firebase.google.com/docs/cloud-messaging/js/clien…](https://firebase.google.com/docs/cloud-messaging/js/client.)

This article covers only the server side (storing the tokens and making push notifications). I think the diagram here makes the flow a little clearer: [tosinjs.hashnode.dev/build-a-push-notification-se…](https://tosinjs.hashnode.dev/build-a-push-notification-service-using-fcm-golang-and-mongodb#:~:text=A%20detailed%20flow%20diagram%20is%20shown%20below.)
