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
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- OAuth Missing redirect URL
Hello all, on a Flutter mobile app with latest Appwrite dependency (25.4.0) I always got "Missing redirect URL" - "Your OAuth login flow is missing a proper red...