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.Recommended threads
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...
- My function executions console if overwh...
It seems the requests are getting processed correctly but it is using a older version of the backend. And it seems the cron requests done an hour ago are shown ...
- Iam getting 500 when i click on the proj...