In my main activity's onCreate, onStart and onResume methods, the call PushManager.shared().getAPID() is always null when the app is installed for the first time.
However, after the onResume method, Urban Airship automatically registers a new APID (I placed a button and created a toast to print the APID). I want to retrieve this APID and store it in my back end server on fresh install. How can I do that?
My question is similar to this question but I'm looking to register the apid on my own back end server not Urban Airship.