title: AppsFlyer SDK Integration Test failed on app, but non-organic test data is reflected on the Dashboard
body: <p>Trying to integrate the AppsFlyer SDK for Android, I've followed all the steps indicated in the <a href="https://support.appsflyer.com/hc/en-us/articles/207032126-AppsFlyer-SDK-Integration-Android" rel="nofollow noreferrer">AppsFlyer guide</a>. Initially, the dependency that was stated is:</p>
  
  <pre><code>implementation 'com.appsflyer:af-android-sdk:4+@aar'
  </code></pre>
  
  <p>But for some reason, it wasn't pointing to the latest version on it's own, making the <code>init()</code> version not visible. And so I instead went ahead and adjusted it to version <code>4.8.15</code> (currently the latest version), which worked as expected in the guide.</p>
  
  <p>After adding the required permissions (with the optional permission) and the BroadcastReceiver (I don't have any other receivers for the referrer so I only used the <code>SingleInstallBroadcastReceiver</code>), I implemented the initialization on the app's Application class like so:</p>
  
  <pre><code>public class MyApp extends Application {
  
      private static final String AF_DEV_KEY = "DEV_KEY_FROM_CONSOLE_HERE";
  
  
      @Override
      public void onCreate() {
          super.onCreate()
          initAppsFlyer();
      }
  
      public void initAppsFlyer() {
          final AppsFlyerConversionListener listener = new AppsFlyerConversionListener() {
              @Override
              public void onInstallConversionDataLoaded(Map&lt;String, String&gt; conversionData) {
  
              }
  
              @Override
              public void onInstallConversionFailure(String errorMessage) {
  
              }
  
              @Override
              public void onAppOpenAttribution(Map&lt;String, String&gt; attributionData) {
  
              }
  
              @Override
              public void onAttributionFailure(String errorMessage) {
  
              }
          };
          AppsFlyerLib.getInstance().init(AF_DEV_KEY, listener, this);
          AppsFlyerLib.getInstance().startTracking(this);
      }
  }
  </code></pre>
  
  <p>The manifest is pointing to the MyApp application class for sure. So that's it. The initial setup is complete. Time for the <a href="https://support.appsflyer.com/hc/en-us/articles/210213753" rel="nofollow noreferrer">SDK Integration test</a> as per the guide.</p>
  
  <p>So I installed the app directly from Android Studio to my device, downloaded SDK Integration test app, whitelisted the device, and selected the name of the app as mentioned in the test guide. Every step followed accordingly.</p>
  
  <pre><code>Clicked on SDK Integration Testing...
  Checking configuration...
  Testing your app..
  *app opens*
  *closes*
  *opens again*
  Testing your app..
  Checking configuration...
  ..
  X Oops..
  </code></pre>
  
  <blockquote>
    <p>This app can not be monitored. Please make sure that:</p>
    
    <ol>
    <li>You are using a supported AppsFlyer SDK version.</li>
    <li>AppsFyler's BroadcastReceiver is configured.</li>
    <li>startTracking() is placed in the MainActivity</li>
    </ol>
  </blockquote>
  
  <ol>
  <li>It's the latest version. So it should work.</li>
  <li>Copy pasted the receiver. Tried removing it and then re-run the test, it showed the missing receiver error. Pasted it back in.</li>
  <li>I'm calling <code>startTracking()</code> in the actual application class. But what the heck. I gave it a try, called it in the <code>MainActivity.onCreate()</code> same result.</li>
  </ol>
  
  <p>I have no idea what is causing the failure in the test. Not much to go on from as well since there's no details on how to debug it further. <strong><em>However</em></strong>, I checked the Dashboard, and there it is. Non-Organic install data counted.</p>
  
  <p>Now I'm confused. Is there an issue with the integration or with the SDK integration test app?</p>