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:
- Open the
XamChat.Core
project that we created in Chapter 4, XamChat – a Cross-platform App. - Create an
Azure
folder within the project. - Create a new class named
AzureWebService.cs
. - Create the
public
class and implementIWebService
. - Right-click on
IWebService
in your code and navigate to Refactor | Implement Interface. - 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.