angularfire2-offline icon indicating copy to clipboard operation
angularfire2-offline copied to clipboard

Sync on reconnect

Open marcusvrlopes opened this issue 7 years ago • 2 comments

HI. I have been using this plugin from the beginning. Congratulations on your hard work on this subject. I am wondering if it is possible to control synchronization with the server by some condition, such as time / hour, for example, and not just by the online status condition. This is necessary in my case because the user has a lot of updates on the heap, and the application has become inoperative when the synchronization begins and until the full synchronization is completed the user can't do nothing that envolves querys. I want to do this job only at a certain time to avoid the freezing screen, as I said. Is it possible?

marcusvrlopes avatar Apr 17 '17 15:04 marcusvrlopes

Thanks for bringing this up! A public synchronization method would work, but I'm curious if using web workers would also solve the issue. When I have some time I would like to look into this, and I'm happy to get input/PRs from others. Thanks!

adriancarriger avatar Apr 21 '17 01:04 adriancarriger

Just wanted to chime in:

This sounds like it could be of use to us as well, as we operate in the hostel business, where a lot of orders get pushed around on bad networks. So we could easily experience needing to push a large amount of data at once.

Anyway Adrian, thanks for your work on this!

larssn avatar May 11 '17 16:05 larssn