SDK for Xamarin

[important] We are currently in the process of developing a wrapper for Xamarin, but in the meantime, experienced developers should be able to integrate our existing telematics SDK into their Xamarin app with relative ease. Please refer to the brief instructions provided below.

Integrating a native SDK into a Xamarin app typically involves the following steps:

  1. Obtain the SDK: Obtain the native SDK for the platform you wish to integrate with your Xamarin app. This could be an SDK for iOS or Android.

  2. Create a binding project: Create a binding project in your Xamarin solution for the native SDK. A binding project is a special type of project that allows you to create .NET wrappers around native code.

  3. Generate the binding library: Use the Xamarin bindings generator to create a binding library for the native SDK. The bindings generator creates C# wrappers around the native SDK's APIs.

  4. Add the binding library to your Xamarin app: Add the binding library to your Xamarin app project by referencing it in your project.

  5. Write code to use the SDK: Write code in your Xamarin app to use the SDK. This involves using the C# wrappers created by the bindings generator to access the native SDK's functionality.

Here is an overview of how to accomplish each step:

Step 1: Obtain the SDK

  • Download the native SDK from the platform's developer website.
  • For iOS, you may need to obtain a license to use the SDK.

Step 2: Create a binding project

  • In Visual Studio, create a new project and choose "Binding Library" under "Cross-Platform".
  • Name the project something descriptive, like "MySDK.iOS.Binding".

Step 3: Generate the binding library

  • Add the native SDK to the binding project by copying the SDK files into the "Native References" folder of the binding project.
  • In the binding project, right-click the "ApiDefinitions.cs" file and choose "Generate bindings". This will generate the C# wrappers for the SDK's APIs.
  • You may need to modify the generated C# code to work with your app's architecture.

Step 4: Add the binding library to your Xamarin app

  • In your Xamarin app project, right-click "References" and choose "Add Reference".
  • Choose the "Projects" tab and select the binding project you created in step 2.

Step 5: Write code to use the SDK

  • In your Xamarin app project, add code to use the SDK's functionality.
  • Use the C# wrappers generated by the bindings generator to access the SDK's APIs.
  • Test your app to ensure the SDK is integrated correctly.


Note that the specific steps for integrating a native SDK may vary depending on the SDK and your Xamarin app's architecture. It's also important to carefully read the SDK's documentation and follow any integration instructions provided by the SDK's developers.