5

Based on this question Sync data between Android App and webserver, I would like to know if there is an existing javascript (not native) SyncAdapter for an Ionic app (just angular is also ok). If not I would like to get some guidelines to write one in the following aspects:

  • How to maintain coherence between app data and server data
  • How to manage app offline situation
  • Recommended interval to refresh from server
  • Battery saving management
Community
  • 1
  • 1
David
  • 2,741
  • 16
  • 26
  • Have yo looked into Firebase (https://www.firebase.com/) and Angular Fire? (https://www.firebase.com/docs/web/libraries/angular/index.html) – Andrew McGivery Oct 23 '14 at 17:02
  • Not bad. This is a client side library, so the data is in FireBase servers. But this is a paid system which is different from the SyncAdapter that I'm looking for, as it can't synchronize with any server. – David Oct 23 '14 at 18:08
  • 1
    @David, ever find anything that suits your need? PouchDb would work, if I had a server running couchdb. :( – you786 Dec 05 '14 at 22:14
  • @you786 not at all in an already developed solution. For now I'm using angular.js handmade [$resource](https://docs.angularjs.org/api/ngResource/service/$resource) with scheduled timer to check every minute for new data in server. – David Dec 06 '14 at 06:16
  • I'm wondering how did you solve this issue, if so. – Daniel Silva Apr 29 '15 at 21:40

0 Answers0