Question

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?

Was it helpful?

Solution

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".

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top