Unity Installation Instructions

1.Download the Unity Plug-in
2.Import the Unity package into your project

Right click on your Assets folder and Import a new package.

If you are using the Google Play Library to display ads use the package Apptient-Segments-GPL.unitypackage to capture the Android advertising id.

3.Add your App ID for your App

Once you create your free account add a new app. Next add your App Id to the ApptientService.cs found in the Assets > Plugins > Apptient

    #region Fields
		private string _appId = "MY_APP_ID";
		private bool _forceLocation = false;

Once you run your app you will start seeing data in your page.

4.Add Activation code for your App

Add the following code in your Unity app

    public void InitializeApptient()
    {
		_mms = new ApptientService();
		_mms.InitializeApptient();
    }
5.Add permissions to your Android Manifest (Android Only)

Add the following permissions to AndroidManifest.xml

Required<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.GET_TASKS" />
Optional<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

To see why we need certain permissions read our FAQ.