AppsFlyerSDK / appsflyer-unity-plugin

AppsFlyer Unity Plugin
MIT License
154 stars 62 forks source link
appsflyer appsflyer-unity-plugin sdk unity

appsflyer-unity-plugin

License: MIT GitHub tag Unit tests check packages

๐Ÿ›  In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com

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.

๐Ÿ“– The Unity documentation also be found here

This plugin is built for

  • Android AppsFlyer SDK v6.15.0
  • iOS AppsFlyer SDK v6.15.1

AD_ID permission for Android

In v6.8.0 of the AppsFlyer SDK, we added the normal permission com.google.android.gms.permission.AD_ID to the SDK's AndroidManifest, to allow the SDK to collect the Android Advertising ID on apps targeting API 33. If your app is targeting children, you need to revoke this permission to comply with Google's Data policy. You can read more about it here.


โ—โ— Breaking changes when updating to 6.12.20 โ—โ—

โ—โ— Breaking changes when updating to 6.6.0 โ—โ—

  • Starting version 6.6.0, there is no more need to differentiate between iOS and Android APIs. All APIs must be called with AppsFlyer class (even if the API is only iOS or Android).
  • Please take into consideration that since version 6.6.0, most of the APIs require initSDK to be called prior to using them, and since version 6.10.10 only a handful of APIs will properly work when called prior to initialization: setIsDebug, setCurrencyCode, setHost, disableSKAdNetwork.

Example:

Before 6.6.0:

#if UNITY_IOS && !UNITY_EDITOR
    AppsFlyeriOS.waitForATTUserAuthorizationWithTimeoutInterval(60);
#endif

After 6.6.0:

#if UNITY_IOS && !UNITY_EDITOR
    AppsFlyer.waitForATTUserAuthorizationWithTimeoutInterval(60);
#endif

โ—โ— Breaking changes when updating to 6.3.0 โ—โ—

  • 6.3.0 supports Universal Windows Platform. As part of this update, the AppsFlyerObjectScript changes to include the app_id for your UWP app. If you made changes to this file, please merge them with the new AppsFlyerObjectScript. Please also note that you can leave the uwp app id field empty.

  • From version 6.3.0, we use xcframework for iOS platform, then you need to use cocoapods version >= 1.10

โฉ Migration

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.

Strict Mode

The plugin supports a Strict Mode which completely removes the IDFA collection functionality and AdSupport framework dependencies. Use the Strict Mode when developing apps for kids, for example. More information about how to install the Strict Mode is available here.


๐Ÿš€ Getting Started


API reference

Troubleshooting