offline-firebase
offline-firebase copied to clipboard
Firebase offline first
Does this js works with the new firebase version?
Do you have a link to the new version you're talking about?
I mean: use firebase release code instead of debug. My chat app use localstorage, but the solution breaks the real-time thing. I see that your solution is better.
talks = go.$child(path);
talks.$on("value", function(){
localStorage.setItem( fromLocal, JSON.stringify( talks ) );
$scope.offTalks = JSON.parse( localStorage.getItem(fromLocal) );
doScroll("fast");
});
Doing like that the app always will render messages even if the app is offline.
I'm not sure I understand what you mean; this repo will only work with the debug code because it extends the class (not possible with the minified release version as far as I know).
Two potential issues:
First, the need for a debug version (which is included with every release, just append -debug
to the file before downloading).
Second is that v0 is long deprecated, it's pinned to v1.0.6 of our JS client and we're currently at 2.3.2. I would try this with the latest version (debug or minified) to see if it works.
Thanks, I didn't know where to find the latest version. I will have a shot at updating this repo to use the more recent API
We're using this in production; any timeframe for v0 ceasing to work?
Yep, no problem. I basically just try to get people to upgrade from v0 since we've implemented a ton of new features, performance improvements, and bug fixes since then. No immediate plans for deprecation (we try to always implement backwards compatible changes), but I would try to upgrade for the performance and bug fixes if for no other reason :)
+1 for an update on this repo!
Also +1 for an update.