I want to get reference that, How can we find out current Latitude and Longitude when our application is running in background..
If you have any suggestion then please suggest me…
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well first you need to tell iOS that your app will run in background with for retrieving the user location.
Do this by adding the
Required background modesto the info.plist and set one item toApp registers for location updatesThe just set up the
CLLocationManagerto start monitoring location changes.Apple does suggest that your app only use
significant changesto save battery: http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH5-SW6