I want to push the fix (blindly) to a server on the internet (simple socket send of about 100 bytes). Will the iOS SDK give me enough time to do that when didUpdateToLocation starts me up in the background?
Share
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.
I believe that these location type services are allowed to run in the background (provided they identify themselves as such in the plist) without restriction. If you are concerned, wrap your processing in a – (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:(void(^)(void))handler
function, which I think gives you about 10 minutes of processing, which should be plenty of time.