---
title: "Comment by George Onyango on \"Build a Push Notification Service Using FCM, Golang and MongoDB\" | Hashnode"
description: "I can not see where you are creating the token. I can see the insert to the db."
url: "https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa/comment/67212584571f5b70060fc12d"
---

[Discussion](https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa)

Comment [Build a Push Notification Service Using FCM, Golang and MongoDB](https://hashnode.com/posts/build-a-push-notification-service-using-fcm-golang-and-mongodb/640848658361473fde9a79aa)

[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.)
