How to subscribe pref for realtime update
Hi - I do not understand your question completely but do you want to know how to subscribe to changes to user preferences using realtime?
You can use realtime ( https://appwrite.io/docs/realtime ) and subscribe to channel account.
Then, when you get the payload, you check events. There, the first event is the most specific one. So you could do if statement like payload.events[0].includes('prefs.update')
Feel free to correct me if I understood the question wrong
using this users.*.update.*.prefs ?
but this is not triggering when i am trying to update prefs.
have you got my point?
Hi @joeyouss. So when you check for the payload.events[0].includes(‘prefs.update’) What do I do to make sure that the update appears in real time?
Are you using account as the channel just like Jyoti recommended?
Please create a new <#1072905050399191082> post and include your code
just subscribe account channel and you are good to go.
Recommended threads
- Help
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...