Angularjs/Ionic SyncAdapter equivalent

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