NB: For Conversations bindings see this 3rd party package: jedusei/Twilio.Conversations.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
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.
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
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 project is done from Visual Studio Community Edition for Mac, given that further mentioned prerequisites are met.
We recommend to host the token provider using Twilio Runtime Functions. The one should create new Runtime Function and provide necessary values to it. Here one can find sample of Runtime function to generate Twilio Token based on provided
identity
andpushChannel
.
Sample/ChatDemo.Droid
folder.