Sign in
Log inSign up
TosinJs

10 likes

·

2.4K reads

2 comments

George Onyango
George Onyango
Oct 29, 2024

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

·
·1 reply
TosinJs
TosinJs
Author
·Oct 29, 2024

Hello George Onyango, 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/j….

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-notifica….

·