Architecture advise


#1

I need app architecture advise. Let’s say I need to synchronize data stored locally in $localStorage with server. I suppose there is two ways possible:

  1. Call to specific device from server side.
  2. Send data to server initialized on device according to some schedule.
    Data size I suppose will be about 100-150Kb.
    What is the best approach here?

#2

regularly check device network state a using cordova network satte plugin and then use http service to sync data


#3

Thanks for the information regarding this plugin, that’s good idea. Shoud synchronization be initiallized from device or from server?


#4

i think you can initialize from device itself