Data & Cloud Services

Xamarin.Forms applications can consume web services implemented using a wide variety of technologies, and this guide will examine how to do this.

For an introduction to cross-platform web service consumption on the Xamarin platform, see Introduction to Web Services.

Understanding the Sample

This article provides a walkthrough of the Xamarin.Forms sample application that demonstrates how to communicate with different web services. Topics covered include the anatomy of the application, the pages, data model, and invoking web service operations.

Consuming Web Services

This guide demonstrates how to communicate with different web services to provide create, read, update, and delete (CRUD) functionality to a Xamarin.Forms application. Topics covered include communicating with ASMX services, WCF services, REST services, and Azure Mobile Apps.

Authenticating Access to Web Services

This guide explains how to integrate authentication services into a Xamarin.Forms application to enable users to share a backend while only having access to their own data. Topics covered include using basic authentication with a REST service, using the Xamarin.Auth component to authenticate against OAuth identity providers, and using the inbuilt authentication mechanisms offered by Azure Mobile Apps.

Synchronizing Data with Web Services

This article explains how to add offline sync functionality to a Xamarin.Forms application. Offline sync allows users to interact with a mobile application, viewing, adding, or modifying data, even where there isn't a network connection. Changes are stored in a local database, and once the device is online, the changes can be synced with the web service.

Sending Push Notifications

This article demonstrates how to add push notifications to a Xamarin.Forms application. Azure Notification Hubs provide a scalable push infrastructure for sending mobile push notifications from any backend to any mobile platform, while eliminating the complexity of a backend having to communicate with different platform notification systems.

Storing Files in the Cloud

This article demonstrates how to use Xamarin.Forms to store text and binary data in Azure Storage, and how to access the data. Azure Storage is a scalable cloud storage solution that can be used for storing unstructured, and structured data.

Searching Data in the Cloud

This article demonstrates how to use the Microsoft Azure Search Library to integrate Azure Search into a Xamarin.Forms application. Azure Search is a cloud service that provides indexing and querying capabilities for uploaded data. This removes the infrastructure requirements and search algorithm complexities traditionally associated with implementing search functionality in an application.

Storing Data in a Document Database

This guide demonstrates how to use the Azure Cosmos DB .NET Standard client library to integrate an Azure Cosmos DB document database into a Xamarin.Forms application. An Azure Cosmos DB document database is a NoSQL database that provides low latency access to JSON documents, offering a fast, highly available, scalable database service for applications that require seamless scale and global replication.

Adding Intelligence with Cognitive Services

This guide explains how to use some of the Microsoft Cognitive Services APIs in a Xamarin.Forms application. Cognitive Services are a set of APIs, SDKs, and services available to developers to make their applications more intelligent by adding features such as facial recognition, speech recognition, and language understanding.