
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
- CSV Not Importing
We don’t seem to having any luck importing a simple .csv file. The import function acts like it’s working but no data imports or is shown in the collection The...
- There is ui Problem in the Display name
in Display name i have selected buy mistake but when its update that time document get blank and also when i remove at that time also not removing and data is s...
- Database is not working
The database is not working plz check and fix this, tnq
