Skip to content

wesfieldj/appsflyer-unity-plugin

 
 

Repository files navigation

appsflyer-unity-pluginTest

🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to [email protected]

When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.

Table of content


Migrating from the old plugin? (version V4)
View the migration docs here.

⚠️ There are breaking changes when migrating to Unity v5. This includes new API, different class/package names, and the removal of com.appsflyer.GetDeepLinkingActivity.


  • Android AppsFlyer SDK v5.3.0
  • iOS AppsFlyer SDK v5.3.0
  1. Clone / download this repository.
  2. Import the appsflyer-unity-plugin-*.unitypackage into your Unity project.
  3. Go to Assets >> Import Package >> Custom Package.
  4. Select the appsflyer-unity-plugin-*.unitypackage file.

Note: The plugin uses the The External Dependency Manager for Unity (EDM4U) (formerly Play Services Resolver / Jar Resolver). If you do not want to use EDM4U see the Installation guide for more details.

  1. Go to Assets > AppsFlyer and drag AppsFlyerObject.prefab to your scene.


2. Update the following fields:
Setting Description
Dev Key AppsFlyer's Dev Key, which is accessible from the AppsFlyer dashboard.
App ID Your iTunes Application ID. (If your app is not for iOS the leave field empty)
Get Conversion Data Set this to true if your app is using AppsFlyer for deep linking.
Is Debug Set this to true to view the debug logs. (for development only!)
  1. Update the code in Assets > AppsFlyer > AppsFlyerObjectScript.cs with other available API.

Create a game object and add the following init code:

using AppsFlyerSDK;

public class AppsFlyerObjectScript : MonoBehaviour
{
  void Start()
  {
    AppsFlyer.initSDK("devkey", "appID");
    AppsFlyer.startSDK();
  }
}

Note: Make sure not to call destroy on the game object.

Installation and setup guides can be viewed here.

See the full API available for this plugin.

About

AppsFlyer Unity Plugin v5

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 71.5%
  • Objective-C++ 11.8%
  • Java 10.3%
  • Objective-C 5.4%
  • Shell 1.0%