gregorio_adrian_gimenez Active Member Licensed User Longtime User Jun 28, 2019 #1 Hello! How to delete a document in a firestore collection? Regards
DonManfred Expert Licensed User Longtime User Jun 28, 2019 #2 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. 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: Jul 7, 2019 Upvote 0
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. 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.
DonManfred Expert Licensed User Longtime User Jul 6, 2019 #3 Get updated library at Dropbox (V0.66). Basically it is this code needed Code: 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") Code: Sub UserWatch_onDeleted(success As Boolean, result As Object) Log($"UserWatch_onDeleted(${success}, ${result})"$) End Sub Upvote 0
Get updated library at Dropbox (V0.66). Basically it is this code needed Code: 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") Code: Sub UserWatch_onDeleted(success As Boolean, result As Object) Log($"UserWatch_onDeleted(${success}, ${result})"$) End Sub