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
- Flutter OAuth2 webAuth Bug?
I created with flutter an app where I can login in with my Microsoft Account. When I compile it to Web (WASM) or Android (aab) then there is no problem what so ...
- Synchronous Function Execution Timed Out...
Hi Appwrite team 👋 I’m facing a synchronous function execution timeout issue on Appwrite Cloud and would appreciate some guidance. I executed this function u...
- Push Notification FCM Error
Hello dear people. I tried to integrate Push Notifications into my Flutter App. Everything works fine on Android/iOS Simulator + Testflight but as soon as I s...