
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
- PROBLEMS UPLOADING IMAGE IN REACT-NATIVE...
having serious problems uploading image from react-native using expo-go to Appwrite storage. #react-native #storageupload #createfile
- How to return result of a Python Functio...
Hello, can someone suggest a path forward to do this? I have no clue how to do it. It's an Expo Android app and my app saves an audio to a storage bucket and t...
- how can I save the session so that it do...
hello guys, I'm writing an android application (kotlin) and I have authorization where I can receive data, but how do I save the data correctly so that there ar...
