Building Cross-platform Mobile Apps in C# with Xamarin and Azure

Use your C# skills to build a cross-platform mobile application and a cloud-hosted back-end. You will learn how to use Xamarin and Azure together to quickly build a rich application with login, push notifications, and a lot of code reuse.
Course info
Rating
(11)
Level
Beginner
Updated
Oct 9, 2018
Duration
4h 8m
Table of contents
Description
Course info
Rating
(11)
Level
Beginner
Updated
Oct 9, 2018
Duration
4h 8m
Description

Building mobile applications for multiple platforms is challenging. Fortunately, Xamarin and Azure Mobile Apps make it much easier and you get to leverage your C# knowledge across the entire application. In this course, Building Cross-platform Mobile Apps in C# with Xamarin and Azure, you will learn how to build a fully functioning mobile application for iOS, Android, and UWP using C# and Xamarin. First, you will discover how to create a back-end for your application that hosts your data. Next, you will explore using the Azure Mobile Client SDK to build applications targeting each of the mobile platforms while leveraging as much code reuse as possible. Finally, you will learn how to add login and push notification capabilities to each of the applications. When you are finished with this course, you will have a foundational knowledge of Azure Mobile Apps and Xamarin development that will help you as you move forward to building cross-platform mobile applications.

About the author
About the author

Matt is an independent consultant with expertise in web application design and development and systems integration. As a writer, Matt has contributed to several journals and magazines such as MSDN Magazine. Matt regularly shares his love of technology by speaking at local, regional, and international conferences such as DevWeek, Prairie Dev Con, That Conference, and VS Live. As a Pluralsight Author, Matt has created more than 30 courses on the topics of web, mobile, and cloud development.

More from the author
HTML Fundamentals
Beginner
2h 20m
Jun 21, 2019
More courses by Matt Milner
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Matt Milner, and welcome to my course, Building Cross-Platform Mobile Apps with C#, Xamarin, and Azure. I'm an independent software developer and trainer, and I've been working with. NET for 18 years. Azure Mobile Apps plus Xamarin is the fastest way to get started building rich cross-platform applications with C#. In this course, you're going to learn all about Azure Mobile App backends and the various turnkey solutions provided. Some of the major topics that we'll cover include working with data entities and managers, using the Azure Mobile Client SDK, turnkey identity solutions with social providers like Twitter or Azure Active Directory, simple solutions for sending push notifications to your mobile clients. By the end of this course, you will have a solid understanding of how Azure Mobile App backends work and how to build cross-platform clients to interact with them. Before you get started, you should be familiar with programming in Visual Studio with C# and some basic mobile development concepts. From here you should feel comfortable diving into Azure App Services with courses on Azure Websites, Azure Functions, and serverless computing. I hope you'll join me on this journey to learn about Azure Mobile Apps with the Building Cross-Platform Mobile Apps with C#, Xamarin, and Azure course at Pluralsight.

Maximum Code Reuse and Maximum Reach
Hello, and welcome to this course on Building Cross-Platform Mobile Apps in C# with Xamarin and Azure. We're going to focus on getting maximum code reuse and maximum reach across devices when you build your mobile applications. I'm Matt Milner, I'm going to walk you through just how to get started using Azure and Xamarin to build those mobile apps get the most benefit out of that reuse. So we'll start by taking a look at why we want to do cross-platform development, why do we want to write code that can run on multiple devices? Some of those pieces are obvious. Some maybe not so obvious. We'll also talk about why use Xamarin? There are other tools out there that you can use for writing cross-platform mobile applications, and we'll look at why in some cases Xamarin is the best option. And why C#? If we're going to use Xamarin, we'll be using C#. But why is that the language that makes sense when we're doing cross-platform development? Finally, we'll look at why do we use Azure Mobile Apps? What do they bring to the table? What are they going to help you do as you build out and develop your mobile application.

Setting up Your Azure Mobile and Xamarin Solution
Welcome to this module on setting up your Azure Mobile and Xamarin Solution. Now I know you're probably thinking, Matt, I don't really need help with File, New Project, do I? And I'd agree. However, we're going to cover a number of things around getting your solution set up to combine Xamarin client applications and the Azure mobile server application. Specifically, we're going to talk about creating the solution, of course, getting all the client projects created, updated with the right references, and also choosing the right project types for your shared projects. You've got a number of different options today, and I want you to know the trade-offs and what I think is probably the right choice moving forward. We'll also talk about adding the appropriate components and packages to both your server application for the backend and the client applications so that everything is all set up at the end of this particular module and ready for you to begin coding the business logic of your application. Let's go ahead and dive into creating the solution.

Working with Data and Custom APIs
Thanks for joining me as we continue looking at Azure Mobile Apps and Xamarin to build cross-platform mobile applications. In this module, we're going to focus on working with data and custom APIs in our Azure mobile backend. We'll start by taking a look at the data architecture of an Azure Mobile App, how all the various pieces fit together, and how we get a web API that sits on top of a data store and enables our mobile applications to retrieve and submit data. We're going to look at the data entities, those items that we want to expose out of the service and store in the data backend, and some of the special properties that they have to enable different scenarios. We'll look at controllers both our TableControllers that allow us to expose a particular entity and a set of CRUD operations, as well as custom API controllers where we can control the different operations and the response and request formats. We'll see how DomainManagers help bridge that world of the web interface with the data store where our data is kept. And we'll look at how you can plug in alternate data stores. So if you don't want to use a SQL Server and Entity Framework, how you can plug in and use additional data stores, such as a NoSQL database or a table store such as Azure table storage. So let's get started taking a look at that data architecture.

Adding Notifications
Hello, and welcome to this module in our course on Building Xamarin Applications with Azure Mobile. In this module, we're going to talk about adding notifications to our application. Now how do we notify our users in the mobile application when something interesting happens on our backend? We're going to start by taking a look at how notifications work. How do these notification systems on our phones where we get pop-ups and badges actually work? And then we'll look at Azure notification hubs. This is the piece of Azure that knows how to talk to those various platform-specific notification systems for Apple, Google, and Microsoft. Finally, we'll see how Azure Mobile leverages those notification hubs to provide the push notifications, but also to provide the turnkey solutions to simplify that setup and the code that we write to interact with them.