title: First time app installation gives apid to be null
body: <p>In my main activity's <code>onCreate</code>, <code>onStart</code> and <code>onResume</code> methods, the call <code>PushManager.shared().getAPID()</code> is always null when the app is installed for the first time. </p>
  
  <p>However, after the <code>onResume</code> method, Urban Airship automatically registers a new <code>APID</code> (I placed a button and created a toast to print the <code>APID</code>). I want to retrieve this <code>APID</code> and store it in my back end server on fresh install. How can I do that?</p>
  
  <p>My question is similar to <a href="https://support.urbanairship.com/customer/portal/questions/277810-why-is-getpushid-null-the-first-time-" rel="nofollow">this</a> question but I'm looking to register the apid on my own back end server not Urban Airship.</p>