title: How to handle logout event using push notifications?
body: <p>I have an app where I want to unregister for push notifications when the user logout. This can simply be done using</p>
  
  <pre><code>[[UIApplication sharedApplication] unregisterForRemoteNotifications];
  </code></pre>
  
  <p>However, is there no way to register (or prompt for registration) once a user login at a later time?<br>
  Answers to <a href="https://stackoverflow.com/q/2438400/1075405">this</a> question suggest there is not, so what is then the recommended way of handling this?</p>
  
  <p>The <a href="https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction.html" rel="nofollow noreferrer">documentation</a> of notification services gives, as far as I can tell, no clue how to handle this.<br>
  All suggestions are appreciated! </p>