Giter Club home page Giter Club logo

Comments (5)

owen2 avatar owen2 commented on August 23, 2024

I'm having the same issue with FirebaseSharpPortable. My callbacks never run.

from firebasesharp.

bubbafat avatar bubbafat commented on August 23, 2024

I suspect this has something to do with auth tokens. I'm starting to look into it this weekend but I'm pretty busy at the moment. If you run without an auth token (in your Firebase ctor) does it function?

from firebasesharp.

bubbafat avatar bubbafat commented on August 23, 2024

hasibul2363 - when you say "MY KEY" ... are you providing your secret or some other auth key? If it is something else ... what is it?

owen2 - same question. Are you using authentication?

from firebasesharp.

owen2 avatar owen2 commented on August 23, 2024

Yes, I'm using an auth key. I'm using this library to hit the nest api, which requires it. I tried to connect without an auth key, but nest doesn't allow it.

Thanks for looking into this.

from firebasesharp.

bubbafat avatar bubbafat commented on August 23, 2024

Try the latest source or nuget package 1.0.0.4 (just uploaded to nuget) - let me know if this does not resolve the issue.

I created a demo app specifically for connecting to Nest - it is setup for PIN based auth. You provide your client ID and secret, then click the "Get PIN" button - this opens a browser where you authenticate with the app and get your PIN. Type your PIN into the PIN text box. Then click "Get Token" - this uses the PIN data to get the auth token (filled into the token text field) - then you click "Make Call" which does an authenticated streaming get from the root - it should put some details into the big text box on the bottom of the app.

After my latest changes I was able to stream data from Nest. Though I don't have a Nest device so I'm only able to get the first set of streaming results and heartbeats.

Basically the problem was that await-able calls were trying to run on the UI or web sync context which causes HttpClient.GetAsync to block (among other things) ... using a ConfigureAwait(false) avoids the problem.

I'll be re-thinking some of the this when I have more time but it does seem to address the issue.

from firebasesharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.