Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

techme

macrumors newbie
Original poster
Mar 12, 2012
7
0
Hello, everyone

We developed an app which using gps service for iOS 4.0+.
Once leaved our app such as returned to iPhone home screen or shifted to other app, gps would be updated in every 10 mins at background for our app.

At our development phase, the gps arrow could be disappeared just after leaving our app,
but what we are encountering now is that in release version(downloaded from AppStore), the arrow is always showing at the status bar!
So the battery cost is more faster than expectation.

What is the problem?

Thanks and best regards.
 
The problem is your code that might not be that well maintained..
In the App Delegate you need to send decent messages to your controllers, might rework your location code into a Singleton, so it's easy accesable from your AppDelegate, so you're allways sure what/when it happens
 
Thanks for your reply jnoxx:)

The problem is your code that might not be that well maintained..
In the App Delegate you need to send decent messages to your controllers, might rework your location code into a Singleton, so it's easy accesable from your AppDelegate, so you're allways sure what/when it happens

But why at development case of this app, the gps is working normally?
I thought there was something about property configuration mistake in somewhere...
 
Thanks for your reply jnoxx:)



But why at development case of this app, the gps is working normally?
I thought there was something about property configuration mistake in somewhere...

Nope.. Development and on the app store should be the same..
The property lists stay the same, only the settings of the user on their phone regarding GPS can maybe be different against development (not accepting GPS/Bad reception, blah)
 
Nope.. Development and on the app store should be the same..
The property lists stay the same, only the settings of the user on their phone regarding GPS can maybe be different against development (not accepting GPS/Bad reception, blah)

There are some people downloaded and using our app, and almost everyone has the same problem:
using the release version would increase battery cost:confused:
 
There are some people downloaded and using our app, and almost everyone has the same problem:
using the release version would increase battery cost:confused:

have you downloaded the release version onto the same phone that had the test version on it? You need to be able to reproduce the issues your customers are having, which as far as I can tell from your post, you haven't yet...

(You could just use one of the promo codes to get your own app for free.)
 
Thanks for your reply, ArtOfWarfare:)

have you downloaded the release version onto the same phone that had the test version on it? You need to be able to reproduce the issues your customers are having, which as far as I can tell from your post, you haven't yet...

(You could just use one of the promo codes to get your own app for free.)

Yes, for verification, we are also using the same iPhone/iPodTouch that have both dev version & release version installed in it.

When using the dev one, the gps arrow disappear just after leaving our app, but the released one could not disappear until I kill it at background.:(
 
Replied by Apple tech center:

This is not possible. Your app can use Region Monitoring to be "woken up" when a user enters or leads an area <http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW13>.
Or it can declare itself a navigation app, and keep the GPS radio turned on the entire time.
This is what an app giving turn-by-turn driving directions would do. However this drains a lot of power.:(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.