offline-firebase icon indicating copy to clipboard operation
offline-firebase copied to clipboard

Firebase offline first

Open calebeaires opened this issue 10 years ago • 8 comments

Does this js works with the new firebase version?

calebeaires avatar Jul 14 '14 12:07 calebeaires

Do you have a link to the new version you're talking about?

yeldarby avatar Jul 14 '14 12:07 yeldarby

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.

calebeaires avatar Jul 14 '14 13:07 calebeaires

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).

yeldarby avatar Jul 14 '14 14:07 yeldarby

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.

asciimike avatar Dec 09 '15 20:12 asciimike

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?

yeldarby avatar Dec 29 '15 13:12 yeldarby

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 :)

asciimike avatar Dec 29 '15 19:12 asciimike

+1 for an update on this repo!

davidLeonardi avatar Feb 06 '16 19:02 davidLeonardi

Also +1 for an update.

matt-webfab avatar Mar 07 '16 19:03 matt-webfab