
TypeScript
Log.d("TAG", "loadData: here")
realtime.subscribe("databases.*.collections.*.documents.*") {
Log.d("TAG", "loadData: $it")
val data = it.payload.tryJsonCast(Data::class.java)
Log.d("TAG", "loadData: $data")
if (data != null) {
_list.value.add(message)
}
Log.d("TAG", "loadData: ${_list.value}")
}
Why only here
get print in my logcat?
It doesn't even through any error, nor any other data
TL;DR
Realtime subscription code is not functioning properly as expected. The subscription callback is only logging 'here' and not processing the data. Check if the subscription path is correct. Also, ensure that the Data class is correctly created and used for JSON parsing. Provide error handling and logging for better debugging.Recommended threads
- Query params are way too limiting in ter...
I was trying to list rows in a table that do not already exist in another table. I retrieved around 260 row IDs which are 13 characters in length each, and then...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- REQUEST FAILED IN MIGRATION
I was trying to moved my archived project to a self-host database . Though the Project is "read only" but there's a message that I can view and migrate data to...
