iOS 7 - Long running background task

半城伤御伤魂 提交于 2019-12-20 06:11:08

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!