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
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...