hello everyone, I opened the realtime documentation, but I didn't understand how to work with it. It seems to show how to create an object, but how to use it and get, say, there is no value from the database
It seems to show how to create an object
what do you mean?
suspend fun getRealtime(onUpdate: (Notification) -> Unit) {
val realtime = Realtime(client)
val subscription = realtime.subscribe("databases.$databaseId.collections.Notification.documents") { event ->
val payload = event.payload
Log.d("REALTIME_DATA", "new message: ${payload}")
}
}
this
yes, so that subscribes and when an event comes in, it gets logged
Docs say:
Instead of requesting new data via HTTP, the subscription will receive new data every time it changes
how can this be used?
create a document that the user has access to and the event will come through.
and how do I output the document I need if there are no changes, but they will be?
Recommended threads
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support π I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- π Realtime Flutter SDK Crash β Realtime...
**Summary** When using Appwrite Cloud with the Flutter SDK (latest appwrite release: 21.4.0), Realtime crashes with: ```Unhandled async error: type '_Map<String...