Firebase Android addListenerForSingleValueEvent sometimes not returning data

前端 未结 4 1705
灰色年华
灰色年华 2021-01-17 10:34

When my application starts, I check the current user\'s details in my Firebase database (I\'m storing it\'s uid for that).

I\'m attaching addListenerForSingleValueEv

4条回答
  •  孤城傲影
    2021-01-17 10:59

    The recommendation I've seen for this is to call keepSynced(true) on the Query object.

提交回复
热议问题