C# – First steps with C# and .NET – part 048.

Today’s tutorial is about C# and the google firebase service.
The main goal is to connect a Xamarin Application with an Firebase Database.
You need to create a simple database without any records on this.
Open your Firebase account and create a database , you will see the URL of this database like this:

To use this service I used an NuGet package called firebase database from this project.
Open a new Xamarin project and install this package.
In the main file named MainActivity.cs I add this source code:

The UI from activity_main.xml is this:

If you run it the when you press the button the text show you one message about the connection with the firebase database.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.