Adding a backend to XamChat

With our server-side changes complete, the next step is to implement our new service in our XamChat iOS and Android applications. Luckily, as we used an interface named IWebService, all we need to do is implement this interface to get it working in our application.

Now we can start setting up our service in our iOS application by performing the following steps:

  1. Open the XamChat.Core project that we created in Chapter 4, XamChat – a Cross-platform App.
  2. Create an Azure folder within the project.
  3. Create a new class named AzureWebService.cs.
  4. Create the public class and implement IWebService.
  5. Right-click on IWebService in your code and navigate to Refactor | Implement Interface.
  6. A line will appear; press Enter to insert the method ...

Get Xamarin: Cross-Platform Mobile Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.