bubbafat / firebasesharp Goto Github PK
View Code? Open in Web Editor NEWA C# client for Firebase.io
License: Apache License 2.0
A C# client for Firebase.io
License: Apache License 2.0
Hi there ,
i'm just making sure if the FirebaseSharp will work for Firestore or not ?
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.
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 ?!
Can i use FirebaseSharp for Firebase Analytics
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
Look at how the cache class might be usable for this.
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, 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.
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:
//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.
Unfortunately this lib is also incompatible with .NET Core as the original one.
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?
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...
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));
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
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
Am I reading the sources correctly? The implementation get everything for the given endpoint and when I do filtering it does so only locally??
Implement the OnDisconnection behaviors:
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.