๐ 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.
- Android AppsFlyer SDK v6.2.0
- iOS AppsFlyer SDK v6.2.2
- Clone / download this repository.
- Import the appsflyer-unity-plugin-*.unitypackage into your Unity project.
- Go to Assets >> Import Package >> Custom Package.
- 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.
- 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!) |
- 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.
See the full API available for this plugin.
Migrating from the old plugin? (version V4)
View the migration docs here.
Unity v5
. This includes new API, different class/package names, and the removal of com.appsflyer.GetDeepLinkingActivity
.