Is it possible to wake up an app every x minutes, so that the application can do something in the background? So the app stays in the background.
Is it possible to wake up an app every x minutes, so that the
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.
This doesn’t wake an app up every x minutes, but will launch an app into the background:
An app can be woken by a significant location change, if the app has indicated that it wants to monitor such events.
See: CLLocationManager Docs
Look for a method called
startMonitoringSignificantLocationChanges. If a significant location change occurs while your app is not in the foreground or isn’t running at all, your application will be launched in the background, allowing the app to perform background-only operations (e.g. no view code will run).