Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscribing to topics #40

Open
DmitriyBobrovskiy opened this issue Sep 27, 2023 · 0 comments
Open

Subscribing to topics #40

DmitriyBobrovskiy opened this issue Sep 27, 2023 · 0 comments

Comments

@DmitriyBobrovskiy
Copy link

Hey, thanks for the great work.
I quite don't understand - is that possible to subscribe to topics? Or that is an FCM specific feature?

What I'm looking for is ability to subscribe to some topic and then sending notifications to each device subscribed to that topic like:

default_app = firebase_admin.initialize_app()

# Create a message
message = messaging.Message(
    notification=messaging.Notification(
        title="Title of the Notification",
        body="Body of the Notification",
        # image="https://kldscope.eu/favicon.png"

    ),
    topic="some_topic"
)

# Send the message
response = messaging.send(message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant