Back

[Messaging] Subscribe to topic directly after creating a push target

  • 0
  • Flutter
  • Cloud
Rienkk
9 Jan, 2025, 09:57

I want to subsribe a user to a topic directly after the user has created a push target. However when trying to do this, appwrite gives the error that the target does not exists. (It was just created, so I guess not yet refreshed). Even awaiting for some seconds does not change the situation.

Does anyone have a suggestion on how to fix this?

TL;DR
Developers are trying to subscribe users to a topic right after creating a push target, but it's giving an error as the target doesn't exist yet. Awaiting for a few seconds doesn't resolve it. The solution provided by developers is to increase the awaiting duration to 6 seconds.
Rienkk
9 Jan, 2025, 09:59

Solved it by increasing the awaiting duration to 6 seconds

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