twilio / TwilioChatXamarinBindings

Twilio Chat Bindings for Xamarin (Android and iOS) and Sample app with working FCM and APN pushes using those bindings.
https://www.twilio.com/chat
MIT License
32 stars 15 forks source link

Twilio Chat Xamarin Bindings

NB: For Conversations bindings see this 3rd party package: jedusei/Twilio.Conversations.Xamarin

NuGet version (Twilio.Chat.Xamarin)

This repo holds Xamarin project to create Twilio Chat Bindings for Xamarin apps (Android and iOS) and Sample projects for Android and iOS to demonstrate how it can be used. The bindings itself are published ot NuGet.org with name Twilio.Chat.Xamarin

Building component

Requirements

Building component

cd Twilio.Chat
./nugetBuildAndPack.sh
cd -

This will clean the project, fetch necessary libs for Android (through Gradle) and iOS (through CocoaPods), build the component and package it to NuGet package.

Documentation

Where it's possible, the documentation is built into the Xamarin Component. However, it's not full. It's always a good idea to consult with Twilio documentation for respective SDK (iOS or Android): https://www.twilio.com/docs/api/chat/sdks

Sample app

Overview

The sample app consists of Xamarin Forms project ChatDemo, shared code ChatDemo.Shared and platform specific projects ChatDemo.iOS and ChatDemo.Droid.

The sample project is fully functional Twilio Chat demo app which works in such way:

Building the sample app

Building the sample project is done from Visual Studio Community Edition for Mac, given that further mentioned prerequisites are met.

Common

Android

iOS