---
title: "Discussion on \"Firebase cloud messaging and python 3\" | Hashnode"
description: "Discussion on \"Firebase cloud messaging and python 3\". Sending push notifications using python and firebase cloud messaging to users"
url: "https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd"
---

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

Discussion

# [Firebase cloud messaging and python 3](https://blog.iampato.me/firebase-cloud-messaging-and-python-3?utm_source=hashnode&utm_medium=feed)

Sending push notifications using python and firebase cloud messaging to users

Jan 8, 2022 · 3 min read · blog.iampato.me  
Read the article

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

## Written by

[Patrick Waweru](https://hashnode.com/@iampato)

@iampato · Nairobi, KE

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

@iampato

git commit -m "always keep learning"

## Responses 4

Markdown supported · ⌘↵ to post

[kalpesh tawde](https://hashnode.com/@kalpeshtawde)

[Sep 15, 2023](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/6503b725770802e8a4add063)

The default\_app variable is not being used anywhere. What is the use of it?

[Patrick Waweru](https://hashnode.com/@iampato)

[Aug 8, 2024](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/6503b725770802e8a4add063#reply-66b4d712dd4d215bb3c39d3f)

Actually, as long as you call firebase\_admin.initialize\_app(creds) the variable is not needed

[Buzz](https://hashnode.com/@buzzz)

[May 29, 2023](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/6474a0b478c17ca4128060fb)

Hi, we keep getting the error of: Auth error from APNS or Web Push Service.

Could you please help

[Patrick Waweru](https://hashnode.com/@iampato)

[Jul 7, 2023](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/6474a0b478c17ca4128060fb#reply-64a83f5fa25b10201445f28d)

Did you get help ?

[MCCurcio](https://hashnode.com/@MattCC)

[Jan 8, 2022](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/61d9bb4fcda0d0294b696848)

Hmmm... Interesting, I wanted to try it on Jupyter notebooks but get: `ModuleNotFoundError: No module named 'FcmUtils'`

Any suggestions?

[Patrick Waweru](https://hashnode.com/@iampato)

[Jan 9, 2022](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/61d9bb4fcda0d0294b696848#reply-61da7ccd9881c433c36b4a4f)

Hey there, Apologize I have refactored the code sample, to:

from fcm\_utils import FcmUtils and messaging = FcmUtils()

Thanks for catch, enjoy your reading

[Mwaijohn](https://hashnode.com/@aicode)

[Jan 8, 2022](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/61d9a3fc3c89a32a8681825f)

Great article 👏 👏 👏

[Patrick Waweru](https://hashnode.com/@iampato)

[Jan 8, 2022](https://hashnode.com/posts/firebase-cloud-messaging-and-python-3/61d9a02c3c89a32a868181bd/comment/61d9a3fc3c89a32a8681825f#reply-61d9af84cda0d0294b696720)

Thanks John
