title: What conditions must be met for TestFlight to send activities to the server?
body: <p>I'm trying to understand: <strong>On Android, How does TestFlight determine that it is in a beta-tester environment, and should upload activity to the TestFlight server?</strong>  There have been some <a href="https://stackoverflow.com/questions/15739993/what-can-prevent-testflight-from-uploading-logs">similar</a> <a href="https://stackoverflow.com/questions/10874100/testflight-sdk-missing-reports?rq=1">questions</a> asking about TestFlight on iOS, but none related to Android.</p>
  
  <p>I've integrated the <a href="http://testflightapp.com" rel="nofollow noreferrer">TestFlight SDK</a> into my company's Android app because it looked like a great solution for beta-testing and remote logging (we already use it for iOS), but I'm can't get it to actually send the session information to the TestFlight server.  Once I install my app through the TestFlight app, I immediately see that it was installed through the TestFlight web console, and then... nada.  I get no session data or remote logs, even though I clearly should be getting something.</p>
  
  <p>What I have done so far:</p>
  
  <ul>
  <li>Quadruple-checked my TestFlight api key</li>
  <li>Verified for certain that <code>TestFlight.takeOff()</code> is getting called</li>
  <li>Verified that <code>TestFlight.isActive()</code> reports <code>true</code></li>
  <li>Tried signing the apk with the debug-only key</li>
  <li>Tried signing the apk with our release key</li>
  <li>Checked the android log for errors related to TestFlight (none)</li>
  <li>Contacted TestFlight support a couple days ago (I've made contact, but no progress yet)</li>
  </ul>
  
  <p>My current guess is that the TestFlight lib thinks it is in a production environment, and therefore it should not be uploading logs and session information.</p>
  
  <p>The <a href="https://testflightapp.com/sdk/android/doc/1.0/" rel="nofollow noreferrer">SDK Documentation</a> has nothing to offer to answer this question, but I feel that if I understood what conditions it is looking for I could nail this down pretty quickly.</p>
  
  <p>I poked into TestFlightLib.jar and found that <code>TestFlight.isActive()</code> is really only reporting whether or not you've already called <code>TestFlight.takeOff()</code>, so that's not a good indicator of whether the whole system is working.</p>