Facebook settings for mobile apps show nothing

I want to track installations with mobile app ads. I am already registering my application and adding the Facebook SDK. But I do not see any installation in App Insights. So what is my problem and how to check it. Here is my main activity:

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;

import com.facebook.AppEventsLogger;

public class MainActivity extends Activity {

     @Override
     protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);
     }

     protected void onResume() {
           super.onResume();

           AppEventsLogger.activateApp(this, "APP_ID");
           AppEventsLogger.newLogger(this).flush();
     }

}

Please let me know if I have any errors. Thanks for the support.

+4
source share

Source: https://habr.com/ru/post/1527424/


All Articles