Auto background sync of client data to server using Ionic Framework


I am using Ionic framework for the iOS and android app development. What I want is that if I store some data (say image data via camera) on the client side then this data from the client side needs to be stored offline and this offline data should be send to the server in the background process i.e as soon as it finds the proper internet connectivity.

In short, I want some procedure from which I can automatically upload the client data to the server in the background process.

Is there any method or cordova plugin to do so ?


do see the firebase for back-end support. It also capatiabillity of queue that if the wifi or internet goes off then it saves the state and when it on it uploads