Giter Club home page Giter Club logo

firebasesharp's People

Contributors

bubbafat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

firebasesharp's Issues

Missing: StartAtKey, EndAtKey

The official libraries allow [start|end]At* queries to include an optional key to further filter by - instead of providing that as an optional parameter add StartAtKey and EndAtKey filters.

Query Sometimes Slow

Hello bubbafat,

I'm new at this lib, I used in my Asp.Net Web API server
client connect to my server and server connect to firebase
Sometimes, it take long time (about 10 seconds) to get data from firebase to my client

this snip from my code:

public class FirebaseService
{
private static string DatabaseURL = WebConfigurationManager.AppSettings["DATABASEURL"];
private static string AuthSecret = WebConfigurationManager.AppSettings["AUTHSECRET"];
private static FirebaseApp app = new FirebaseApp(new Uri(DatabaseURL), AuthSecret);

   public Task<T> GetData<T>(string path)
    {

        var Ref = app.Child(path);

        var promise = new TaskCompletionSource<T>();

           Ref.Once("value", (snapshot, child, context) =>
               {
                   promise.TrySetResult(snapshot.Value<T>());

               });

        return promise.Task;
    }
  }

at controller :
var data = await _FirebaseService.GetData<Type>(Path) ;

any suggestion ?!

New Dummy Needs Help

Please my issue is slightly different, i am new in programming and i want to integrate Firebase features in my application for data storage, authentication and notification,the project folder i downloaded seem to contain class libraries for all but can i get help on how to use it? because the comments within the codes are pretty straight forward and i don't understand all the terminologies

Put and PutAsync Method Issue

When I use Put Method then the data gets updated into Firebase. But It halts after sometime automatically telling to use PutAsync method.
When I use PutAsync method the value gets updated with random numbers i.e. sometimes show higher values and sometimes show lower values for a particular key.

Would love to see Windows 10 Universal App c# compatibility

Would love to see Windows 10 Universal App c# compatibility, current FirebaseSharp NuGet will not install because Microsoft.Net.Http targes Windows version 8.1

Also does this lib handle the new Firebase offline sync?

Thanks, love this lib.

handle keep-alive timeout

Hi bubbafat,

Second issue i saw is that you don't handle keep-alive timeout.

So i did some research and think this is what should be done:

  1. in file Response.cs, you should declare a timer with timeout twice the interval between keep-alive.
    keep-alive timeout is 30 seconds. So the interval should be 60 seconds.
  2. In ReadLoop() method start the timer, just before while(true).
    in following code block:
    if(read.StartsWith( "event: " ))
    {
    //handle keep-alive.
    }

//Copy to above block
if(eventName == "keep-alive")
{
lock(_keepAliveLock)
{
_keepAliveTimer.Stop();
}
}

if the keepAliveTimer function is called, this means that keep-alive timeout occurred.
If that happens, you should dispose the object and send notification to user.

OutOfMemoryException

When I add a large number of objects - the system uses more than 2GB.

System.OutOfMemoryException was unhandled
Message: An unhandled exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll

How to reset the cache?
How do I know that the object is loaded?

Is this the current version?

On Nuget there is V2.0.4 that was updated about a week ago but this is a few months old. Have you moved the code somewhere or is this current? I ask because I'm trying to see if there are any docs or anything to help get started...

GetStreaming is not functioning

Hi I have used following code to get the streaming data but after executing
fb.GetStreaming it goes freeze. No event is firing. Need you help

string rootUri = "https://chat-todoapp.firebaseio.com/";
string authToken = "MY KEY";
Firebase fb = new Firebase(rootUri, authToken);
fb.GetStreaming("UserMessagesV1/hasibul2363@gmailcom/sopnomoijarna@gmailcom",
added: (s, args) => AddedItem(args), changed: (s, args) => UpdatedItem(args), removed: (s, args) => RemovedItem(args));

Error: newtonsoft.json library it referenced did not contain a reference to monotouch.droid .

Xamarin project made a .net standard(1.4) shared project and tried referencing this library from it. I tried making a build which said that the newtonsoft.json library it referenced did not contain a reference to monotouch.droid.

Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, ....'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Newtonsoft.Json.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver) SmartHotel.Clients.Android

Unity3D support?

I use nuget to add this lib to Unity5 project via VS2015 v14 but it throw...

Severity    Code    Description Project File    Line
Error       Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5,Profile=Unity Subset v3.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

So it's not support Unity am I right? Or maybe some magic workaround to make it work?

Thanks

JSON Object exception?

ref.On works first time but on adding node it crashes. However, update on deleted node works.

An unhandled exception of type 'System.Exception' occurred in mscorlib.dll

Additional information: Node object must be a JSON object type - illegal type: Object

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.