title: iOS: how to register for push notifications?
body: <p>I'm trying to implement Push Notifications for my iOS 5 application by the guide from Ray Wenderlich: <a href="http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12">http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12</a>.</p>
  
  <p>I've inserted the following into my <code>didFinishLaunchingWithOptions</code> method in my AppDelegate:</p>
  
  <pre><code>[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
      (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
  </code></pre>
  
  <p>When running the application on my device (not simulator) the popup/alert telling me to accept push notifications isn't displayed. I've inserted a debug-point on the line, and I can see, that the <code>registerForRemoteNotificationTypes</code> is called.</p>
  
  <p>Why is nothing happening?</p>