-1

Actually I have the following scenario:

I want to create an app that will check the user's current location and send Apple push notifications based on the user's current location.

I know it is possible when the app is running, but I want to know, is this possible when the app is not running? Is there any way my app can send the user's current location to my web server so that it can send relevant push notifications?

bouteillebleu
  • 2,456
  • 23
  • 32
Irfan DANISH
  • 8,349
  • 12
  • 42
  • 67
  • 1
    You should rephrase your question towards: `is it possible for an iPhone app to connect with a server when running in background`. – Till Nov 21 '11 at 18:59

2 Answers2

1

Yes, it is possible. Go to your info.plist and add a new line with the key of Required Background Modes. Open up the array that was just created and for Item 0 set the value for the key to "App registers for location updates".

Baub
  • 5,004
  • 14
  • 56
  • 99
1

Yes, you just need to register as a location-based application. See Getting the User’s Location in the Location Awareness Programming Guide, and Tracking the User’s Location in the iOS App Programming Guide.

Rob Napier
  • 286,113
  • 34
  • 456
  • 610