Using Firebase in .Net

Using Firebase in .NET

You can use existing C# REST libraries like FireSharp or FirebaseSharp
or Firebase Database REST API because official libraries do not exist yet.

P.S. Firebase C# library

Retrieving data from Firebase using Admin SDK for .NET

I just received this response from Firebase Support. It seems the Admin SDK for .NET is still being developed:

It indeed is not yet added, and although we cannot provide any more details on the current projects of the engineering team it is already an item to be worked on.
Please take note that we cannot provide any details or timelines as of when it will be worked and released but it will surely be checked onto. You may keep an eye on our release notes and our blog for any further updates

Release notes: https://firebase.google.com/support/releases

Blog: https://firebase.googleblog.com/

Firebase: Authenticating from C# .NET Core application

The missing step was calling the FirebaseApp.Create() method, as described in the Firebase authentication documentation.

I modified my application to add that method before the call to FirestoreDb.Create(), and that did it. Here is the modified code:

private async Task<Dictionary<string, object>> GetData() {
string projectId = "My-Project";

FirebaseApp.Create(new AppOptions()
{
Credential = GoogleCredential.GetApplicationDefault(),
});

FirestoreDb db = FirestoreDb.Create(projectId);
Dictionary<string, object> dd = new Dictionary<string, object>();
...
}

Add Firebase Log Events (Analytics) in dotnet core

There is currently no SDK for working with Firebase analytics and .net

Now this form for Firebase analytics appears to use Google analytics GA4 which means that you could do this your self and go though the measurement protocol for GA4

Its just a HTTP Post call

POST /mp/collect HTTP/1.1
HOST: www.google-analytics.com
Content-Type: application/json
<payload_data>

How to set data in firebase realtime database with ASP.NET MVC app

I expect that the client you are using is a wrapper around Firebase's REST API, which interprets a POST request as a request to add the data as a new child node.

If you want to write the data to the exact path you specify, use a PUT request, so in your C# code that'd be PutAsync.



Related Topics



Leave a reply



Submit