title: No response for Device token request on the simulator
body: <p>I am newbie to iphone technology,right now i m working with an application where i need to implement push notification.</p>
  
  <p>I followed the link :</p>
  
  <p><a href="http://mobiforge.com/developing/story/programming-apple-push-notification-services#comment-7850" rel="nofollow">http://mobiforge.com/developing/story/programming-apple-push-notification-services#comment-7850</a> </p>
  
  <p>Also,Used the following code : </p>
  
  <pre><code> NSLog(@"Registering for push notifications...");
      [[UIApplication sharedApplication]
    registerForRemoteNotificationTypes:
   (UIRemoteNotificationTypeAlert |
    UIRemoteNotificationTypeBadge | 
    UIRemoteNotificationTypeSound)];
  
  - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 
  {
      NSString *str = [NSString stringWithFormat:@"Device Token=%@",deviceToken];
      NSLog(str);
  }
  
  - (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err 
  { 
      NSString *str = [NSString stringWithFormat: @"Error: %@", err];
      NSLog(str);    
  }
  
  - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo 
  {
      for (id key in userInfo) 
   {
          NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
      }    
  }
  </code></pre>
  
  <p>Thing is,when i run the program,i should get device token in the debugger window,as per the code,instead i am getting error like :</p>
  
  <blockquote>
    <p>" Error in registration. Error: Error
    Domain=NSCocoaErrorDomain Code=3010
    "remote notifications are not
    supported in the simulator"
    UserInfo=0x6e055a0
    {NSLocalizedDescription=remote
    notifications are not supported in the
    simulator} "</p>
  </blockquote>
  
  <p>How should i solve this problem?</p>
  
  <p>Kindly help me out.</p>
  
  <p>Thank you.</p>