Firebase offline no CompletionListener on setValue

后端 未结 1 1798
北恋
北恋 2020-12-11 05:20

I have this codebase where I set a value. In offline mode it writes successfully but is not calling the CompletionListener.onComplete callback function.

newO         


        
相关标签:
1条回答
  • 2020-12-11 06:16

    The completion listener for write operations will be invoked when the write has been committed to the database on the Firebase servers. When you're offline, that won't happen.

    There is no way to unsubscribe a completion listener. If the listener still exists when the write operation completes, it will be invoked.

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