问题
Similar to iOS long-running background timer with "location" background mode but not exactly.
Our app needs to send occasional geolocation data in the background. Works fine in foreground but it, of course, gets terminated after 3 minutes. So I need to implement something like this. Has anyone done this in C# and, if so, would you be willing to share?
https://stackoverflow.com/a/18962839/462935
Thanks!
回答1:
You can only have your app wake up on significant location changes. Please see CLLocationManager while app is in background state.
You cannot simply run your app in the background indefinitely, which is part of iOS's design for minimal power usage. It would be good to read Apple's documentation on App State and Multitasking.
来源:https://stackoverflow.com/questions/19989278/ios-7-long-running-background-task