Skip to content
Back

Creating Push Notification With Topics Fails

  • 0
  • Messaging
  • Cloud
Camka
20 Aug, 2025, 18:36

Whenever I try to create a push notification using the python SDK it fails to add the topic id to the message. So in Appwrite the message has no topics. I've confirmed that I am adding a list of topics to the message in Python. Creating a message from the console works, I have also double checked the topic IDs match.

In my example I would have user_ids as None, and topic_id is a valid id.

TypeScript
self._messaging.create_push(
    message_id=ID.unique(),
    title=title,
    body=body,
    topics=list(topic_id),
    users=user_ids,
)
TL;DR
Issues with creating push notifications with topics using Python SDK in Appwrite. Message creation fails due to topic IDs not being added to the message. The code snippet provided shows adding a list of topics to the message, yet it still doesn't work. Creating messages in the console works fine, and topic IDs have been double-checked. Solution: Ensure that the 'topics' parameter in the create_push method accepts a list of strings, not a single ID. Adjust the code to pass the topic ID as a string within a list.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more