Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect firebase to C# Windows based app

I want to connect my C# windows based app to firebase realtime database. Is there any convenient library to do the same? or is there any better method to do so?

like image 971
Kiran Malvi Avatar asked Oct 12 '17 05:10

Kiran Malvi


People also ask

How do I connect my code to Firebase?

Click Tools > Firebase to open the Assistant window. Click to expand one of the listed features (for example, Analytics), then click the Get Started tutorial to connect to Firebase and add the necessary code to your app.

Can you use Firebase with C#?

The Google Cloud client libraries support Firebase access in Java, Python, Node. js, Go, PHP, C#, and Ruby. To get started with one of the Google Cloud client libraries, see the Quickstart using a Server Client Library.


2 Answers

From this link here you can say that FirebaseDatabase.net is better than another older library like FireSharp and FirebaseSharp :

They both have their imperfections, specifically related to realtime streaming.

For example, when we subscribe to a location, and a change happens to some nested node, FireSharp won’t correctly pair it with the top level entity and will only return the path and data as a string. We want the deserialization to be automatic.

FirebaseSharp‘s streaming implementation is even more unfortunate — at first, it fetches everything from a given location (even when we specify filtering options) and does the filtering locally. This is obviously not usable when there are thousands of items.

Also, neither of them targets Universal Windows Platform.

like image 174
faruk Avatar answered Sep 27 '22 21:09

faruk


Firebase for Windows is not release ready yet. We have a C++ library and a C# library for firebase and both of them support Windows. But a quick look at the support pages will show you that Firebase is only supported for Android, iOS and Web. The desktop version of Firebase API's is a beta feature and is not recommended for shipping. You can integrate it but you are not supposed to ship it. I would recommend going through Firebase alternatives instead of shipping your product with Firebase and waiting for the desktop version to be out of beta for you to ship it.

like image 38
Lohith S Avatar answered Sep 27 '22 23:09

Lohith S