Android and iOS integration

EMMA has two SDK for Xamarin, one for Android and one for iOS. Both are "bindings" of the respective native libraries, therefore methods share name and how to integrate it is very similar to the native.

1. Download the SDK

  • iOS binding 4.8.0 of native SDK.
  • Android 4.8.0 of native SDK.

Download from Github

2. Add the .dll to the project

First, you have to import the EMMA SDK our Xamarin project. You have to add in the References folder, in this folder system libraries or third-party libraries are housed.


To add the SDK as a reference, copy the .dll file to the root folder of the project, then add the reference, giving right-click on the folder.


Once open the Edit Reference screen, access to the .Net Assembly tab and choose the .dll file.


Click OK and you have the SDK integrated into the project.

The Android procedure is the same, it will only be necessary to add a reference to the project next to the EMMA SDK binding, InstallReferrer.dll, this reference can be found with SDK dll in Github repository.

3. Start session

In both OS to start session, you must specify the use of the library in the code:

using EMMASDK; 

In Android add it to Application extension:


You have to add the following code in AndroidManfiest.xml:

     android:value="@string/emma_session_key" />

in iOS in AppDelegate.cs:

EMMA.StartSession("<EMMA Session Key>");

NOTE: If you are using iOS XamarinForms, add the following attribute in the AppDelegate.cs:

public override UIWindow Window {

4. Dependencies (Android only)

To integrate the SDK in Android, add the following packages in order:

  1. Kwon.Squareup.OkHttp3.Logging-interceptor (3.11.0)
  2. Kwon.Squareup.Retrofit2.Retrofit-converter (
  3. Karamunting.AndroidX.BumpTech.Glide (4.9.0)
  4. Xamarin.GooglePlayServices.Ads.Identifier (117.0.0)
  5. Xamarin.Firebase.Messaging (120.1.7) Optional, only for push. If this dependency is used in version 120.1.7 it is necessary update dependency Xamarin.Google.Dagger at the latest version 2.25 or over.

Remember add the reference InstallReferrer.dll cited above.

5. Continue with integration

Once the above points, and you can use all the options offered by the SDK EMMA, you must consult the documentation of native libraries. The method names are identical, only changes the manner of invocation with C#.


If you use push notifications, it is important to keep in mind that every time a Rebuild is made and a subsequent installation in Visual Studio, when the app is installed, the push token is invalidated because FCM detects that the app has been uninstalled. If this happens, uninstall the app manually and reinstall it, this will generate a new token. Before sending a test push from the EMMA platform, you can try the following Curl method to know if the token is valid. If "Not Registered" appears, the token has been invalidated.

integration documentation

6. Sample App

For viewing the sample app go to this GitHub repository:

Have more questions? Submit a request


Article is closed for comments.