Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2008, 02:06 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 394
Default Rejected...question for you guys on what this means.

Glad when they reject something they give details on how to resolve it. This is what they sent.


Quote:
Your application, xxxx, cannot be posted to the App Store at this time because it does not achieve the core functionality described in your marketing materials. Applications must adhere to the iPhone Human Interface Guidelines as outlined in iPhone SDK Agreement section 3.3.5.

xxxxx was never able to determine My Location using Location Services. This issue occurred while using a 3G iPhone. The application keeps searching, but no location is found and an error message is not presented to notify the user of the problem.


In order for your application to be reconsidered for the App Store, please resolve this issue and upload your new binary to iTunes Connect.

Should you require more assistance with resolving this issue, Apple Developer Technical Support is available to provide direct one-on-one support for discrete code-level questions.
But, the app does get a location on every phone we've tried it on and I have no idea what they're talking about. Also, is that direct one-on-one the paid service they offer or is it free?
detz is offline   Reply With Quote
Old 09-13-2008, 02:08 PM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 75
Default

sounds like it means they tested it in an area where you can't get the location and if you can't get it you need like an alert box or such to notify the user that the location is not found
__________________
Iphone Noob iPhone Development Blog. Learn to develop for the iPhone SDK with me
hijinks is offline   Reply With Quote
Old 09-13-2008, 02:11 PM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 394
Default

What's odd about Location Services is though it never tells you it can't find a location..it ALWAYS give you something even if it's a cached location or a bad location. I've never been able to not get a location...something always comes up.
detz is offline   Reply With Quote
Old 09-13-2008, 02:15 PM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Location: Germany
Posts: 154
Default

Quote:
Originally Posted by hijinks View Post
sounds like it means they tested it in an area where you can't get the location and if you can't get it you need like an alert box or such to notify the user that the location is not found
Exactly, just make sure to let the user know that no location is found after 30 seconds or something like that.

And I think the "direct one-on-one support" is the one you get if you pay (so do we have 2 free sessions because we paid to get into the dev program? I read about that somewhere...)
ChriB is offline   Reply With Quote
Old 09-22-2008, 12:31 PM   #5 (permalink)
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
Default

My app was just rejected. It was a version that included GPS functionality, and I'm guessing that I had the same issue. I didn't know that one has to implement the error-receiving method of the locationManagerDelegate . . .

but I haven't received any communication from Apple about why my app was rejected. Does it take them a while to send this info? Or should I contact them?

The app was given rejected status yesterday.

Thanks!

Charlie
cmezak is offline   Reply With Quote
Old 09-22-2008, 02:46 PM   #6 (permalink)
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
Default

PS:

Is the following code sufficient to address this problem?

Code:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {	
	if (error == kCLErrorDenied) [locationManager stopUpdatingLocation];
}
Apple's documentation about this method states:

Quote:
Implementation of this method is optional. You should implement this method, however.

If the location service is unable to retrieve a location fix right away, it reports a kCLErrorLocationUnknown error and keeps trying. In such a situation, you can simply ignore the error and wait for a new event.

If the user denies your application’s use of the location service, this method reports a kCLErrorDenied error. Upon receiving such an error, you should stop the location service.
I'm hoping that this is the issue in my rejected app and that this is the fix for it.

- charlie
cmezak is offline   Reply With Quote
Old 09-22-2008, 03:50 PM   #7 (permalink)
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default

Use that method, but add a notification for the user. Use the alert view to notify the user that no location could be found. That should fix your problem.
tkilmer is offline   Reply With Quote
Old 09-22-2008, 04:07 PM   #8 (permalink)
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
Default

So this would work:

Code:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {	
	if (error == kCLErrorDenied) [locationManager stopUpdatingLocation];
	else if (eror == kCLErrorLocationUnknown) {
		[locationManager stopUpdatingLocation];
		// open an alert with just an OK button
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Whoops!" message:@"Your GPS location could not be determined.  Try again."
													   delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
		[alert show];	
		[alert release];
	}
}
?

I hope Apple actually tells me what the problem is soon.

- Charlie
cmezak is offline   Reply With Quote
Old 09-22-2008, 07:59 PM   #9 (permalink)
Registered Member
 
tkilmer's Avatar
 
Join Date: May 2008
Posts: 583
Default

That looks good. I have never used the location services, but it appears that everything should be in order. Good Luck!

Tkilmer
tkilmer is offline   Reply With Quote
Old 06-21-2009, 04:59 AM   #10 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by detz View Post
Glad when they reject something they give details on how to resolve it. This is what they sent.

But, the app does get a location on every phone we've tried it on and I have no idea what they're talking about. Also, is that direct one-on-one the paid service they offer or is it free?
I am putting together a list of rejection reasons and I found your post. The reason for apple not finding a location is, that they test location-enabled apps INSIDE and also with network connectivity off. If you just display a NO SIGNAL or an UIAlertView stating that for cell-tower or wifi triangulation internet is required that's enough.

I learned this the hard way myself with GeoCorder, which was rejected serveral times due to the above weird testing methods.
__________________
regards

Oliver Drobnik
Cocoanetics - Our DNA is programmed in Objective-C.

Linguan – makes localizing strings file fun!

Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Oliver Drobnik is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 267
18 members and 249 guests
ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, Duncan C, F_Bryant, Grinarn, HemiMG, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:48 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0