iPhone vibrate on recieving Push Notification

http://www.developerfeed.com/how-make-iphone-vibrate-recieving-push-notification

– (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
#if !TARGET_IPHONE_SIMULATOR
NSString *sound = [apsInfo objectForKey:@"sound"];
NSLog(@“Received Push Sound: %@”, sound);
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
#endif
}