I have this strange thing where OnSuccessListener
or OnFailureListener
stopped being called. Everything works ok but when I turn of mobile data and
when I turn of mobile data and Wifi [neither] the
OnSuccessListener
orOnFailureListener
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.