Why is not the my listeners hit here in this Firestore set

后端 未结 1 1296
刺人心
刺人心 2021-01-15 18:32

I have this strange thing where OnSuccessListener or OnFailureListener stopped being called. Everything works ok but when I turn of mobile data and

相关标签:
1条回答
  • 2021-01-15 18:54

    when I turn of mobile data and Wifi [neither] the OnSuccessListener or OnFailureListener is being called

    That is the expected behavior. The completion listeners are only called once the data has been written on (or rejected by) the server.

    The listener doesn't fire for local write operation. If the local write operation were to fail, the client will raise a regular exception.

    0 讨论(0)
提交回复
热议问题