Загрузка...

Django: How to Send Push Notifications from Backend (Part 2) | Firebase Admin + Token API

In this tutorial, learn how to send push notifications to users (tokens) from the backend using Firebase Admin and Django, and save tokens in your Django database.

🔥 What’s New in 2025?
Since Firebase discontinued the legacy version of Cloud Messaging API in 2023, they don't provide a straightforward client secret. So, the method for using the API has changed. Watch this video till the end to learn more.

✅ This video (part-2) covers:
- Sending notifications to users i.e., (FCM) tokens
- Saving (FCM) tokens

🔔 Python Based Source Code:
https://github.com/topCodegeek/fcm-web-push
(Doesn't include the API backend)

🔐 Django Based Source Code:
https://buymeacoffee.com/topcodegeek/e/428483
(Complete)

🎬 Part 1 (JS client, SW):
https://youtu.be/grSfBbYuJ0I

📸 My Socials:
https://x.com/topcodegeek
https://instagram.com/topcodegeek

Thumbnail Image:
Photo by Sebastiaan Stam on Unsplash
https://unsplash.com/photos/man-wearing-red-hoodie-RChZT-JlI9g?utm_content=creditShareLink&utm_medium=referral&utm_source=unsplash

Timestamps:
00:00 Intro
00:34 Credential Setup
02:01 Function Definition
03:41 Testing the Function
04:43 New Model
06:26 API Setup
08:56 Disallow Unauthenticated Users
09:37 Frontend API Setup
11:12 Check Saved Tokens in Admin
11:48 Outro - What Next?

Видео Django: How to Send Push Notifications from Backend (Part 2) | Firebase Admin + Token API канала Ishaan Topkar
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять