We have developed some apps before and got them approved. For the new release, we added some lines to track the users / devices - we basically wanted to see who is reading our app and when. For that reason, we added

######CODE NOT APPROVED BY APPLE ######
.....
- (void)viewDidLoad {
NSString *phoneNum = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
NSString *udid = [UIDevice currentDevice].uniqueIdentifier;
[self navigationItem].title = @"News";
self.tableView.rowHeight = 70;
NSString *newpName = [[EEGlobal configDic] objectForKey:@"catalogName"];
webpath = [NSString stringWithFormat:@"(URL address blocked)/iphoneTrack?newspaper=%@&udid=%@&phone=%@", newpName, udid, phoneNum];}
....
#######
ITUNES REASON FOR REJECTION: They couldn't read the XML file/data after we do the tracking. (send screenshots)

iPhoneTrack is a Java Servlet that redirects to the XML file.

In the simulator, we can see the XML file/data and cannot recreate the error. We don't even get a record of when Apple tested the app -- no connection to our server at all.

To try to find out the problem, we submitted a similar line of code (our previous app) and it got approved.

##### APPROVED ####
@synthesize newsArray;
- (void)viewDidLoad {
NSString *phoneNum = [[NSUserDefaults standardUserDefaults] stringForKey:@"SBFormattedPhoneNumber"];
NSString *udid = [UIDevice currentDevice].uniqueIdentifier;
[self navigationItem].title = @"News";
self.tableView.rowHeight = 70;
NSString *newspaperName = [[EEGlobal configDic] objectForKey:@"catalogName"];
//webpath = [NSString stringWithFormat:@"(URL address blocked)/iphoneTrack?newspaper=%@&udid=%@&phone=%@", newpName, udid, phoneNum];
webpath = [NSString stringWithFormat:@"(URL address blocked)iPhoneSource/%@/feed.xml", newpName];
}
######
Thanks in advance