Youngrok Lim Youngrok Lim - 2 years ago 136
Android Question

Android mobile app installs not tracked

I have a mobile application in android/iOS platform. I proceeded to install the Facebook SDK in my mobile application. iOS was immediately tracked. But
I am having some troubles when trying to track the number of mobile installs of my Android application through Facebook.

Here is my code.


build.gradle

android {
repositories {
mavenCentral()
}
}
dependencies {
compile 'com.facebook.android:facebook-android-sdk:4.25.0'
}


HelloFacebookApplication.java

import android.app.Application;

import com.facebook.appevents.AppEventsLogger;

public class HelloFacebookApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
AppEventsLogger.activateApp(this);
}
}


values/strings.xml

<string name="facebook_app_id">Here is my App ID(number)</string>


AndroidManifests.xml

<application
android:name="Here is my packagename.HelloFacebookApplication"
.
.
.
<meta-data android:name="com.facebook.sdk.ApplicationId" android:value="@string/facebook_app_id"/>
</application>
<uses-permission android:name="android.permission.INTERNET"/>


And Package name, Default Activity Class Name, Key Hashes saved.

I tested my device iPhone 6S+(10.3.3) / LG Optimus G Pro(API 19, 4.4.3)

What is wrong in my android mobile application config?

Answer Source

Time passed and applied.

Thanks :D

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download