GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.17k stars 155 forks source link

Missing addOnSuccessListener and addOnFailureListener #629

Open juanitodur opened 2 months ago

juanitodur commented 2 months ago

Hello! I am following Firestore docs on how to add data, detailing the usage of these two functions upon the db process completion or failure, but neither can be found. Any idea about this? Thanks!

nbransby commented 2 months ago

Read https://github.com/GitLiveApp/firebase-kotlin-sdk?tab=readme-ov-file#suspending-functions

the function will throw the exception that you would receive in addOnFailureListener in java code

nbransby commented 2 months ago

this is the function https://gitliveapp.github.io/firebase-kotlin-sdk/firebase-firestore/dev.gitlive.firebase.firestore/-document-reference/set.html