title: Sending a metric using VisualStudio AppCenter in Android is not registered
body: <p>I'm building an application, one of the things we would like to do is to check how many of our users don't order any items (they open the application and close it). I tried 2 ways to achieve this:</p>
  <ol>
  <li>I have created a service and override onTaskRemoved, the service is working correctly and it will prompt me a log when it's in the onTaskRemoved method, unfortunately I can't see this new metric in the AppCenter for some reason. The metric JUST_A_TEST_IGNORE is working and I can see it in the website.</li>
  <li>I tried also to send this metric in the onDestroy of an activity but with the same results (it does not send anything).</li>
  </ol>
  <p>Other metrics that I already placed in the application are working without any problem.</p>
  <p>This is the of my service:</p>
  <pre><code>class RemoveTaskService : Service() {
  
  private var isLead : String? = null
  
  companion object{
      const val IS_LEAD_KEY = &quot;IS_LEAD_KEY&quot;
  }
  
  override fun onBind(intent: Intent?): IBinder? { return null }
  
  
  override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
  
      isLead = if(intent !=null &amp;&amp; intent.hasExtra(IS_LEAD_KEY)) intent.getStringExtra(IS_LEAD_KEY) else &quot;0&quot;
      val properties = HashMap&lt;String, String&gt;()
      properties[&quot;USER_TYPE&quot;] = if (isLead == &quot;0&quot;) &quot;Invited User&quot; else &quot;Regular User&quot;
      Analytics.trackEvent(&quot;JUST_A_TEST_IGNORE&quot;, properties)
  
      return START_NOT_STICKY
  }
  
  override fun onTaskRemoved(rootIntent: Intent?) {
     // super.onTaskRemoved(rootIntent)
       val get : Boolean = Analytics.isEnabled().get()
      val done : Boolean = Analytics.isEnabled().isDone
      Log.d(&quot;testapp&quot;,&quot;get=$get done=$done&quot;)
      val properties = HashMap&lt;String, String&gt;()
      properties[&quot;USER_TYPE&quot;] = if (isLead == &quot;0&quot;) &quot;Invited User&quot; else &quot;Regular User&quot;
      Analytics.trackEvent(&quot;ORDER_NOT_COMPLETED&quot;, properties)
  }
  </code></pre>
  <p>}</p>
  <p>The output of the log is:</p>
  <pre><code>D/testapp: get=true done=false
  </code></pre>
  <p>I also tried with or without</p>
  <pre><code>super.onTaskRemoved(rootIntent)
  </code></pre>
  <p>but without any luck</p>
  <p><strong>--Edit--</strong></p>
  <p>After I followed Ivan suggestion and put</p>
  <pre><code>AppCenter.setLogLevel(Log.VERBOSE)
  </code></pre>
  <p>in my code, I noticed the following log:</p>
  <pre><code>D/AppCenter: Storing a log to the Persistence database for log type event with flags=1
  </code></pre>
  <p>Is there a way to send the log instead of storing it?</p>