title: Push notification delegate method issue
body: <p>I am new to Objective C. In my app i need to implement push notification, i have created new app ID and i have created new provisioning profile also. i have finished all the steps mentioned in this <a href="http://mobiforge.com/developing/story/programming-apple-push-notification-services" rel="nofollow">link</a></p>
  
  <p>i have declared this delegate function in my appDelegate .m file. </p>
  
  <pre><code>- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { 
  
          NSString *deviceTokens = [[deviceToken description] stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@"&lt;&gt;"]];
          deviceTokens = [deviceTokens stringByReplacingOccurrencesOfString:@" " withString:@""];
          NSLog(@"registered device token %@", deviceTokens);
          self.deviceToken = deviceTokens; 
  }
  
  - (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err { 
  
      NSString *str = [NSString stringWithFormat: @"Error: %@", err];
      NSLog(@"String %@",str);    
  
  }
  
  - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
  
      for (id key in userInfo) {
          NSLog(@"key: %@, value: %@", key, [userInfo objectForKey:key]);
      }    
  
  }
  </code></pre>
  
  <p>But this delegate functions are not called. please help me to fix this issue. </p>