It's free Flurry Analytics iOS and Android implementation for Unity 3D.
Fully supported:
- Flurry iOS 6.2.0 - FlurryIOS.cs
- Flurry Android 5.4.0 - FlurryAndroid.cs
You can also find cross-platform analytics implementation in Flurry.cs file.
private void Start()
{
// For Flurry Android only:
FlurryAndroid.SetLogEnabled(true);
// For Flurry iOS only:
FlurryIOS.SetDebugLogEnabled(true);
// Cross-platform
Flurry.Instance.StartSession("ios_api_key", "android_api_key");
Flurry.Instance.LogUserID("Github User");
Flurry.Instance.LogEvent("event", new Dictionary<string, string> {{ "platform", "Github" }});
}See TestScene.unity for more details.
In order to implement this plugin, you will need to include Google Play Analytics Services API. Using a Unity project that builds via Gradle, add the following to your Gradle build file:
dependencies {
compile 'com.google.android.gms:play-services-analytics:11.0.4'
}
In Android Studio SDK Manager, make sure your Google Play Games Services SDK is updated, along with the Google Repository.
If you are already using Google Play Games Services, this API is included, but you may run into dex overflow issues when you build. To solve this issue, you will need to compile only the packages you need independently via Gradle (as recommended above with Analytics).
In the Google Play Developer Console,
- generate unique app id in Google Developer Console under Game Services tab.
- replace 'APP_ID' field in AndroidMainfest.xml to your existing app id value:
<meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ APP_ID" />
- set proper package name in Unity project settings.
- Add Security.framework
0.9.9
MIT