Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase offline first #3

Open
calebeaires opened this issue Jul 14, 2014 · 8 comments
Open

Firebase offline first #3

calebeaires opened this issue Jul 14, 2014 · 8 comments

Comments

@calebeaires
Copy link

Does this js works with the new firebase version?

@yeldarby
Copy link
Owner

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

@calebeaires
Copy link
Author

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.

@yeldarby
Copy link
Owner

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

@asciimike
Copy link

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.

@yeldarby
Copy link
Owner

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?

@asciimike
Copy link

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

@davidLeonardi
Copy link

+1 for an update on this repo!

@matt-webfab
Copy link

Also +1 for an update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants