title: Registering the iPhone application for push notification not working
body: <p>I have tried out the example found in the link <a href="http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12" rel="noreferrer">http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12</a> ,  for my iPhone push notification message. I could successfully run all steps except the steps for registering the app for push notification for the first time. </p>
  
  <p>I have followed different variations of the code: </p>
  
  <pre><code>[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
  (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
  </code></pre>
  
  <p>But none worked for me. I am testing it in my iPhone 4 and my Xode version is 4.2 , OS is Lion.
  Please advice.</p>