I am working with push notifications in my app. but I am getting this warning: Incompatible Objective-C types assigning 'struct NSString *', expected 'struct NSData *'
the code where its getting warning is:
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
// Here you send the deviceToken to your server..
deviceToken = [[[[deviceToken description]
stringByReplacingOccurrencesOfString: @"<" withString: @""]
stringByReplacingOccurrencesOfString: @">" withString: @""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
NSLog(@"Device Token: %@",deviceToken);
}
Can anybody tell me why did I got that warning.
Thanks