Skip to content

DreamTeamMobile/Xamarin.Agora.Samples

Repository files navigation

Agora.io Full SDK Cross-Platfrom samples

This repository contains samples of using Xamarin Agora.io FULL SDK Nuget packages

Xamarin.Agora.Full.Android NuGet Badge

Xamarin.Agora.Full.iOS NuGet Badge

Xamarin.Agora.Full.Mac NuGet Badge

Xamarin.Agora.Full.Forms NuGet Badge

also contains a basic sample for Agora WebRTC

Running samples

  1. Run app on any 2 devices

  2. Enter same room name on both devices

  3. Click Join button

Quick Start

  1. Prepare Agora App ID, you can follow Obtaining an App ID instructions to get your App ID.

  2. Replace the following empty string with the corresponding App ID:

        public static string AgoraAPI
        public const string AgoraKey = "<AgoraKey>";
        vendorKey = ...
  1. Prepare node.js AgoraTokenServer server for generatin agora tokens. You need to enable Primary cetificate in your agora progect and replace the following empty strings with your cettificated string and App ID: AgoraTokenServer/TokenServer.js
        var appID = "<YOUR APP ID>";
        var appCertificate = "<YOUR APP CERTIFICATE>";
  1. Run AgoraTokenServer and replace the following epmty string with server URL: DT.Samples.Agora.Shared/AgoraTestConstants.cs
        public static string TokernServerBaseUrl

What's Inside

In this repository you can find OneToOne Communication apps for Android, iOS, Mac, Forms and Web

Screenshots

Xamarin.Forms iOS

Xamarin.Forms Android

Xamarin.Forms MacOS

RTM example for Android, iOS and Mac

  • Xamarin Android, iOS and MacOS apps in one solution RTM