Android chat crashes on DataSnapshot.getValue() for timestamp

前端 未结 2 532
自闭症患者
自闭症患者 2020-12-03 16:29

I\'m trying to modify Firebase\'s Android chat example to include Firebase timestamp values. I can send the timestamp just fine using ServerValue.TIMESTAMP; but

2条回答
  •  粉色の甜心
    2020-12-03 17:04

    I know this thread is quite old, but for anyone trying to implement a similar timestamp now, instead of using @JsonIgnore from the Jackson annotations, you can use the Firebase native @Exclude now.

提交回复
热议问题