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.