• Stars
    star
    155
  • Rank 240,864 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created about 5 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AppsFlyer Unity Plugin

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 [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.

๐Ÿ“– The Unity documentation also be found here

This plugin is built for

  • Android AppsFlyer SDK v6.12.2
  • iOS AppsFlyer SDK v6.12.2

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 โ—โ—

  • Starting from version 6.12.20, we have changed the way we distribute the plugin via UPM. The UPM branches will no longer hold a dependency for com.google.external-dependency-manager as it was proved to cause issues in different versions of Unity - to be clear, this dependency is still required to utilize our plugin, we just can't distribute the plugin with it in UPM form as the EDM4U dependency is not available via UPM for quite a while already but is still available via .unitypackage or .tgz files, if you use UPM to fetch our plugin - please download a suitable version of EDM4U so you will be able to resolve the dependencies, or opt for an installation without EDM4U.

โ—โ— 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

๐Ÿ”— Deep Linking

๐Ÿงช Sample App


API reference

Troubleshooting

More Repositories

1

appsflyer-react-native-plugin

AppsFlyer plugin for React Native
Objective-C
276
star
2

AppsFlyerFramework

AppsFlyer Apple SDK
Ruby
149
star
3

appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
Dart
143
star
4

Unity

AppsFlyer Unity Plugin v4
77
star
5

appsflyer-apple-app-clips-sample-app

Swift
42
star
6

appsflyer-cordova-plugin

AppsFlyer plugin for Cordova
Objective-C
37
star
7

appsflyer-onelink-android-sample-apps

Onelink android apps
Java
35
star
8

appsflyer-android-app

Java
33
star
9

appsflyer-segment-android-plugin

AppsFlyer's Android SDK - Segment Integration
Java
24
star
10

AdobeAirExtension-AppsFlyer

Adobe Air Extension for AppsFlyer
Java
24
star
11

appsflyer-oaid

AppsFlyer OAID collection
Java
22
star
12

segment-appsflyer-ios

The AppsFlyer iOS SDK integration with Segment
Objective-C
21
star
13

appsflyer-onelink-ios-sample-apps

Onelink ios Apps
Swift
20
star
14

appsflyer-onelink-smart-script

JavaScript
18
star
15

AppsFlyerBannerGenerator

Web-to-App Banner Generator for converting your mobile web users into app installs. Powered by OneLink.
JavaScript
17
star
16

appsflyer-unreal-plugin

AppsFlyer SDK For Unreal Engine
C++
16
star
17

appsflyer-capacitor-plugin

AppsFlyer SDK plugin for Capacitor
Swift
14
star
18

SampleApp-Examples

AppsFlyer Sample Apps and SDK Integrations
Objective-C
11
star
19

appsflyer-cocos2dx-plugin

AppsFlyer Cocos2dX plugin
C++
10
star
20

AppsFlyerUnitySampleApp

This is a sampe app for integrating AppsFlyer Unity plugin.
C++
10
star
21

XamariniOSBinding

AppsFlyer Xamarin iOS Binding project + example app
Objective-C
7
star
22

XamarinAndroidBinding

AppsFlyer Xamarin Android Binding project + example app
C#
5
star
23

appsflyer-android-sdk

AppsFlyer Android SDK
5
star
24

adrevenue-apple-sdk

AdRevenue project by AppsFlyer
Objective-C
5
star
25

appsflyer-nativescript-plugin

TypeScript
5
star
26

appsflyer-unity-sample-app

AppsFlyer's Unity 2D mobile game
C#
4
star
27

appsflyer-apple-sdk-qa

This is for testing
Ruby
4
star
28

appsflyer-sdk-v6-sample-app

A sample to demonstrate the init and functionality of AppsFlyer's SDK v6
Swift
4
star
29

appsflyer-apple-purchase-connector

Objective-C
3
star
30

appsflyer-html5-ctv-sdk

AppsFlyer SDK for TV application
JavaScript
3
star
31

kotlinSampleApp

Kotlin
2
star
32

appsflyer-unity-purchase-connector

Java
2
star
33

appsflyer-unity-adrevenue-generic-connector

C#
2
star
34

adrevenue-apple-admob

Objective-C
1
star
35

deep-linking-simulator

Deep Linking Simulator - Powered by OneLink
JavaScript
1
star
36

appsflyer-unity-adrevenue-connector

C#
1
star
37

appsflyer-adobe-mobile-android-extension

AppsFlyer Android SDK Extension for Adobe Mobile SDK
Java
1
star
38

appsflyer-apple-swift-app

The App written with Swift UI that demonstrates the integration with AppsFlyer SDK
Swift
1
star
39

appsflyer-roku-sample-app

Brightscript
1
star
40

appsflyer-sdkless-skadnetwork-client

Objective-C
1
star
41

appsflyer-android-preinstall-provider-sample-project

This is a reference implementation for retrieving, storing and providing access to preinstall transaction IDs required for preinstall attribution with AppsFlyer
Kotlin
1
star
42

appsflyer-snippets

Some code snippets by our Support/RnD team members for different internal and external scenarios. Please do not use those unless guided by AppsFlyer Team member
Kotlin
1
star
43

appsflyer-adobe-mobile-ios-swift-extension

Swift
1
star