CamkaOriginal post
Rank 2: Process
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.
Python
self._messaging.create_push( message_id=ID.unique(), title=title, body=body, topics=list(topic_id), users=user_ids,)Summary
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.