Xamarin
Xamarin SDK
We recommend installing the Cobrowse.io SDK using NuGet. Add the following package to your Xamarin projects:
Xamarin.iOS
Xamarin.Android
Xamarin.Forms
To use Cobrowse.io in your Xamarin.iOS project, please add the following lines to your
AppDelegate.cs
:using Xamarin.CobrowseIO;
[Register("AppDelegate")]
public class AppDelegate : UIResponder, IUIApplicationDelegate
{
[Export("application:didFinishLaunchingWithOptions:")]
public bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
CobrowseIO.Instance.License = "put your license key here";
CobrowseIO.Instance.Start();
return true;
}
}
Xamarin.iOS Swift support
Cobrowse.io SDK uses Swift language, and if you are targeting iOS 12.1 or earlier, it is required to add Xamarin.iOS.SwiftRuntimeSupport NuGet dependency to ship specific Swift dylibs used by Cobrowse with your application.
-