title: iOS application missing from notification center
body: <p>Problem:
  The app doesn't appear on notification center and it is unable to receive push notifications right after installation completes and the app registers for push notifications via <code>registerForRemoteNotificationTypes:</code>.</p>
  
  <p>Details:</p>
  
  <ul>
  <li>The app usually appears in notification center after the device is restarted and after that everything works just fine.</li>
  <li>Sometimes the app shows up in notification center right after intallation and registration for APNs(I still can't confirm this but I think I stumbled upon such situations).</li>
  <li>The app calls the method <code>registerForRemoteNotificationTypes</code> each time a user logins and each time a user logouts respectively with bit masks (<code>UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound</code>) and <code>UIRemoteNotificationTypeNone</code>.</li>
  <li><code>enabledRemoteNotificationTypes</code> returns correct values.</li>
  <li>Initially I used the method <code>unregisterForRemoteNotifications</code> on logout but I changed it to <code>registerForRemoteNotificationTypes:UIRemoteNotificationTypeNone</code> due to suspicians that this could be causing the problem .</li>
  <li>This problem occurs in both development and adhoc builds and irrespectively of whether the app is installed via xcode or itunes.</li>
  </ul>
  
  <p>Any thoughts and advices will be greatly appreciated. Thank you!</p>