Installation using Xamarin.Android
This covers installation of the RingCentral SDK and PubNub dependency for making event subscriptions. Both packages are hosted on NuGet as follows:
Build PubNub Messaging DLL
The following steps will compile the required libraries.
- clone
github.com/pubnub/c-sharp
repo - open
c-sharp/mono-for-android/PubNubMessaging/PubNubMessaging.csproj
in Xamarin Studio - add
Newtonsoft.Json
Json.NET package from NuGet - Build All (⌘B)
This builds the following in c-sharp/monotouch/PubnubMessaging/bin/Release/
JsonFx.dll
Newtonsoft.Json.dll
PubNubMessaging.dll
PubNubMessaging.dll.mdb
Create New RingCentral Xamarin Android Solution
Perform the following steps to load RingCentral and PubNub
- Create a new Xamarin Android app, e.g. Android App Solution
- Add
RingCentral
package from Official NuGet Gallery - Add
PubNubMessaging.dll
reference by editing.NET Assembly
and adding the DLL from previous step
Start Coding
- Add the following to your code:
using RingCentral;
using RingCentral.Subscription; // if using subscriptions