All tagged xamarin

Firebase Authentication in Xamarin - The User Interface

Google’s Firebase is a fantastic platform for us developers. It provides a wide variety of services that we may need for our applications, ranging from databases and storage, all the way to machine learning services and analytics.

Authentication, of course, is among those services, and it makes it incredibly simple for developers to authenticate users using a variety of methods: from the traditional email and password method to phone number authentication to social media authentication.

In this new series of posts, I will be showing you how to implement Firebase user authentication in your Xamarin Forms apps, starting in this one with the user interface.

Mobile DevOps for Mobile Developers (4 new courses!)

Wow, 4 new courses, I had never released so many courses in such a short period of time! But these 4 are actually the same course, only tailored to different mobile developers:

  • Android developers

  • iOS developers

  • React Native developers

  • Xamarin developers

All 4 courses will teach you how to use Microsoft’s Visual Studio App Center to automatically build your code, automatically test it in real devices hosted in the cloud, automatically deploy it to your users both from App Center and to the App Stores, and to get continuous feedback so you can plan the next release!

Dependency Services on Xamarin Forms

While Xamarin Forms has evolved greatly, and more and more plugins are created for us to be able to use native functionality directly from the .NET Standard Library, there will be from time to time a specific functionality that is not yet available through shared code.

This doesn’t mean that you must think of an alternative, say native Xamarin. Xamarin Forms after all still has those native projects. So what do you do? You code the native functionality and inject it over to the .NET Standard Library using Dependency Injection.

Correctly Display Your App on iPhones with a Notch

Almost any app that you may have will look bad on iPhones with a notch if it is not correctly configured. All those iPhones that have launched after the iPhone X back in 2017 have notches that caused Apple to change the way apps look just a little bit.

It is your job as a developer to adapt your applications to this change. Thankfully, it is quite easy to do, literally it takes only one line of code in your Page’s files and that is it.

How the heck does one do DataBinding with XAML

DataBinding is one of those things that once you learn, you have no idea how you lived without it before.

Being one of the most important things you can learn about XAML, this lecture builds on the example that we have been building in previous lecture to complete an introduction to the Xamarin platform. After this, you will be much more efficient when creating and linking your interfaces to your apps’s logic.

Using ListViews in Xamarin Forms

So now you have read the data from the SQLite table into a list of C# objects that are ready to be listed into the user interface.

Now it is time to learn how to use ListViews, which will be the go-to element when you need to display a collection of data to your users.

Reading a SQLite Database

Reading a database will be very straight forward, especially once you know how to establish the connection to the database, which you should already know thanks to our previous post.

All you have to make sure of now is that when reading, you get all that data in the correct format, not as a simple query to a database, but as an actual list of elements. So in this lecture I cover how to do exactly that.

Gesture Recognizers in Xamarin Forms - Tappable Label

Quite often you may want a XAML label to respond to touch gestures. It may be the case that your label must behave as a hyperlink to a website, or perhaps your terms of service and privacy policy (which is a typical scenario in which we add hyperlinks).

By default, XAML labels do not have any events that we could use in this scenario, so your first option may be to create a button and try to make it look like a simple Label (on iOS this is easier than on Android, where buttons always have a background and very distinctive edges).

Inserting to a SQLite Database

Well, now that the Model is ready, and the database is created for both Android and iOS scenarios, there is nothing left for us to do but to start adding the functionality for the necessary requests inside of our application.

In this video, I start by explaining how to insert to the database, and how a specific usage of the using keyword will be rather important for you to understand.

SQLite Xamarin Forms Tutorial - iOS Database Path

When using SQLite inside of your applications, you will need to set the location for the database file.

In this video I cover what you have to do for the iOS scenario, which indeed will be slightly different from the Android one, which means that we will have two versions of the same code -one per platform- and that we will need to code some functionality in the platform-specific projects.

SQLite Xamarin Forms Tutorial - Android Database Path

When using SQLite inside of your applications, you will need to set the location for the database file.

In this video I cover what you have to do for the Android scenario, which indeed will be slightly different from the iOS one, which means that we will have two versions of the same code -one per platform- and that we will need to code some functionality in the platform-specific projects.

Adding NuGet Packages to a Xamarin Forms (starting with SQLite)

So SQLite can be quite useful in a lot of scenarios. I believe most apps should use this light-weight version of a database, even when they rely on another cloud database for their information.

But before we learn how to implement SQLite into our apps, let’s first take a look at how can we add third-party functionality into our apps, so we don’t have to code SQLite functionality from the ground up.