/xamarin.forms-remote-data-study

A study in working with remote data in a Xamarin.Forms application

Primary LanguageC#

Xamarin.Forms Remote Data Study

The purpose of the repository is to study remote data integrations in Xamarin.Forms. This repo contains a Xamarin.Forms application that retrieves and displays a list of GitHub repos.

Topics Studied

  • Making remote web service calls with RestSharp
  • Creating remote data models and deserializing with Json.NET
  • Adding resiliency (request retry logic) with Polly
  • Reducing load time by caching with Akavache
  • Handling network loading, done, and error states

Architecture Diagram

Displaying Error States

To simulate a network error, turn on airplane mode on your phone or emulator and restart the app.

Notes

Error handling and messaging

I chose to displaying loading and error states following Connect to the Internet - Mars Real Estate. However, you could also use pop-up alerts to message errors states to the user.

See Also