Android Question Firestore delete document

DonManfred

Expert
Licensed User
Longtime User
I can not work with my library as of now. I do not have the firebase artifacts installed due to a new SDK Installation.
I´m running in this error.
firebaseartifacts071.png


I know i could install them with the b4a SDK Manager but the manager would download new Artifacts which are not compatible with B4A.
Erel announced a first beta of the next b4a version for next month.
I´ll for sure be one of the first who test these new artifacts and update the Library. It is indeed needed as delete is not implemented as of now.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Get updated library at Dropbox (V0.66).

Basically it is this code needed

B4X:
Dim ref As DocumentReference = fs.document("Drivers/"&docsnap.Id) ' Adapt to the path you need.
ref.setEventname("UserWatch","Drivers/"&docsnap.Id) ' Set eventname
ref.delete("Delete item")
B4X:
Sub UserWatch_onDeleted(success As Boolean, result As Object)
    Log($"UserWatch_onDeleted(${success}, ${result})"$)
End Sub
 
Upvote 0
Top