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
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...
- Flutter OAuth2 does not attach Google se...
Hi Appwrite team, I’m using Appwrite Auth in a Flutter mobile app and trying to upgrade an anonymous user to Google OAuth. Docs say that if there is already a...