views:

42

answers:

1

Apple's developer website describe 3 types of background services an app can use, music, location and VoIP.

When they describe background location services they talk about 2 types of apps: critical and non-critical apps. A GPS navigation app falls into the 'critical' category, and location based social networks like Gowalla and Loops falls into the non-critical category.

I have several questions

  1. I'm building a location based social network, like Google Latitude. this kind of app fall under the 'non-critical' category. these apps are woken up by the OS whenever the phone switches cellular towers. How often is that? how accurate is that? will 100 meter change wake up the app?

  2. I was wondering if there is a way for an application to wake up every 2 minutes to sample the GPS and go back to sleep? 2.

  3. I hear there are new Alerts feature that you can schedule in advance. can these alerts wake up the app, or are they only textual notification?

  4. What if I register a thread as a critical-location thread, so I have full background activity and gps access. will Apple not approve my app?

Thanks!

+2  A: 

As far as I know:

  1. That depends on the Cell Coverage in your area. Might be 100m, might be 2km.
  2. As far as I know not.
  3. That's only the notification (like a push notification does not wake up the app)
  4. It may be approved, but users will complain about unnecessary battery draining.
brandstaetter
So basically, you can't build Google Latitude client on an iPhone?...it's very possible on an Android..It's like Apple doesn't trust developers to limit the cpu/battery to a minimum. They completely forbidden it...And it's not like it's a battery hog, to wake up every several minutes and do soemthing... not more than Mail and Calendar are.
eyalw