title: why didRegisterForRemoteNotificationsWithDeviceToken is not called
body: <p>I am making an application in which I want to implement apple push notification  service.  I am following the step-by-step instructions given in <a href="http://mobiforge.com/developing/story/programming-apple-push-notification-services?dm_switcher=true" rel="noreferrer">this tutorial</a>.</p>
  
  <p>But still, the methods are not called. I don't know what is causing the problem. Can anyone help me?</p>
  
  <pre><code>    - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { 
          //NSString * token = [[NSString alloc] initWithData:deviceTokenencoding:NSUTF8StringEncoding];
          NSString *str = [NSString stringWithFormat:@"Device Token=%@",deviceToken];
          NSLog(@"Device Token:%@",str);
  
          //NSLog(@"Device token is called");
          //const void *devTokenBytes = [deviceToken bytes];
          //NSLog(@"Device Token");
      }
  
      - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)err { 
          NSString *str = [NSString stringWithFormat: @"Error: %@", err];
          NSLog(@"Error:%@",str);    
      }
  </code></pre>