Sending local data when network is back, best practice

Hi!

This is not 100% ionic topic, is more a way of thinking :slight_smile:

I’m saving locally some form data if user looses his network connection, what would be best practice to send them once the network is back, I never checked how firebase does it thou.

Right now I have in mind creating a service that will have $timeout set to aprox 180000ms and would check if there is any local data and if isOnline() and then send them.

Is there a better approach on this?

Thank you