firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Missing addOnSuccessListener and addOnFailureListener

Open juanitodur opened this issue 1 year ago • 2 comments
trafficstars

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!

juanitodur avatar Sep 11 '24 22:09 juanitodur

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 avatar Sep 12 '24 03:09 nbransby

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

nbransby avatar Sep 12 '24 03:09 nbransby