GPS arrow could not disappear at iPhone's status bar in our released app version!

Discussion in 'iOS Programming' started by techme, Apr 11, 2012.

  1. techme macrumors newbie

    Joined:
    Mar 12, 2012
    #1
    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.
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    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
     
  3. techme thread starter macrumors newbie

    Joined:
    Mar 12, 2012
    #3
    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...
     
  4. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #4
    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)
     
  5. techme thread starter macrumors newbie

    Joined:
    Mar 12, 2012
    #5
    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:
     
  6. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #6
    Then i'm out of options, and you need to recheck your code :)
     
  7. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #7
    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.)
     
  8. techme thread starter macrumors newbie

    Joined:
    Mar 12, 2012
    #8
    Thanks for your reply, ArtOfWarfare:)

    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.:(
     
  9. techme thread starter macrumors newbie

    Joined:
    Mar 12, 2012
    #9
    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.:(
     

Share This Page