Comments (5)
I'm having the same issue with FirebaseSharpPortable. My callbacks never run.
from firebasesharp.
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.
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.
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.
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)
- Handle cancel event HOT 1
- Reconnect streaming listener on disconnect when not auth or cancel event
- Would love to see Windows 10 Universal App c# compatibility HOT 4
- handle keep-alive timeout HOT 5
- Offline support HOT 2
- Put and PutAsync Method Issue HOT 1
- Missing: StartAtKey, EndAtKey
- Missing: OnDisconnect().* HOT 1
- Unity3D support? HOT 4
- Is this the current version? HOT 1
- It caches everything and does filtering offline? HOT 1
- Incompatible with .Net Core HOT 1
- OutOfMemoryException HOT 1
- Query Sometimes Slow
- JSON Object exception?
- will it work for newly introduce firestore ?
- New Dummy Needs Help
- Error: newtonsoft.json library it referenced did not contain a reference to monotouch.droid .
- Firebase Analytics Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebasesharp.