I looking for ideas how to implement a local backup of Firebase data on an users device for Cordova/PhoneGap apps.
So if an app is shut down, updated etc. the data can be booted from there.
There is one approach using local storage: https://github.com/yeldarby/offline-firebase
However I prefer not to override Firebase code, and to save data more persistently. Either written to a file via the Cordova file api, or via the SQLite Database plugin for Cordova/PhoneGap.
What is the best way to listen to changes on the Firebase data via AngularFire? So I could react on it an save it along with the Firebase object keys etc.
And, Is there even a way to physically save pending local events?