Location Updates in terminated state.

Hi,
I want to develop an iOS Application that will update user's location(If enabled) to server in evry 1 hr, Even app is terminated,baground or forground state.

It is possible via VOIP Push?
If it is possible by VOIP Push, Appstore will reject?


Please give me a guidline.

Replies

From the docs: Getting the User’s Location

  • If your iOS app must keep monitoring location even while it’s in the background, use the standard location service and specify the
    location
    value of the
    UIBackgroundModes
    key to continue running in the background and receiving location updates. (In this situation, you should also make sure the location manager’s
    pausesLocationUpdatesAutomatically
    property is set to
    YES
    to help conserve power.) Examples of apps that might need this type of location updating are fitness or turn-by-turn navigation apps.
  • If GPS-level accuracy isn’t critical for your app and you don’t need continuous tracking, you can use the significant-change location service. It’s crucial that you use the significant-change location service correctly, because these updates run continuously, around the clock, until you stop them, and can actually result in higher energy use if not employed effectively.