I'm following this tutorial here, but I have a little difficulty.
Whenever I click the button to send the message it returns me that error.
Sorry my google translate s2
Whenever I click the button to send the message it returns me that error.
java.lang.ClassCastException: de.donmanfred.QueryWrapper cannot be cast to de.donmanfred.DatabaseReferenceWrapper
Sorry my google translate s2
B4X:
Sub btn_sendMessage_Click
messageref.Initialize("messages", roomref.Child(childOftheOnlyRoom & "/messages") ,"message")
Dim messagesitems As Map = CreateMap("senderId": auth.CurrentUser.Uid, "text": "Test Message 1")
messageref.push.setValue(messagesitems,"rooms","messages")
End Sub