Back

It must be super essy-How do I subscribe one of my users to a topic from the dashboard.

  • 0
  • Messaging
martins4
14 May, 2024, 21:19

I am trying to get into the messaging functionality. However I am trying to manually subscribe one of my users to a topic but it seems it does not allow me. The permissions is set to “any”.

TL;DR
Developers are seeking guidance on how to subscribe a user to a topic from the dashboard. They discuss real-time messaging using websockets and events for create, update, or delete actions. The conversation delves into push notifications and real-time databases for communication. A link provided explains messaging targets. The user faces difficulty subscribing a user to a topic with permissions set to "any." Solution: To manually subscribe a user to a topic, ensure the permissions are appropriately set.
martins4
14 May, 2024, 21:19

If someone could give me a clue on what targets are and what di they mean it would really help me. I have read the documentatiok but I still feel a bit lost

Steven
14 May, 2024, 21:28
martins4
14 May, 2024, 21:29

Absolutely

martins4
14 May, 2024, 21:29

But how could I apply this to a group chat?

Steven
14 May, 2024, 21:31

You need to add the target. Did you create targets for the users?

martins4
14 May, 2024, 21:32

I think I missunderstood the concept from the beggining

martins4
14 May, 2024, 21:33

This is a way to communicate app with user right? It is not like an in-app chat functionality

martins4
14 May, 2024, 21:33

Am I right? @Steven

Steven
14 May, 2024, 21:35

what is messaging? It's a way to send messages (SMS, email, or push notifications) to a user

martins4
14 May, 2024, 21:37

Okay, but not a real time database to send messages between users. To implement so I should use Real Time Databases. Am I right on this take?

Steven
14 May, 2024, 21:38

yes

Steven
14 May, 2024, 21:38

for the most part

Steven
14 May, 2024, 21:39

you can use push notifications to allow users to get notified of new messages

Steven
14 May, 2024, 21:39

especially when an app is in the background

martins4
14 May, 2024, 21:39

Thanks @Steven Do u know a way to listen to new events like a socket? Somehow I have only managed to update the values every certain time.

martins4
14 May, 2024, 21:40

Okay, I am understanding it

Steven
14 May, 2024, 21:43

our realtime uses websockets and an event should come through for create, update, or delete

martins4
14 May, 2024, 21:48

And when the app is running on the background or even closed then I should recur to hooks and messages. Is it right?

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