应用程序处于后台状态时的CLLocationManager [英] CLLocationManager while app is in background state

查看:98
本文介绍了应用程序处于后台状态时的CLLocationManager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是:CLLocationManager是否继续运行,而我的应用程序处于非活动状态?

My question is: Is CLLocationManager continue running, while my app is inactive?

推荐答案

是的,如果 CLLocationManager 首先被称为 startUpdatingLocation 方法,并且在 AppName-Info.plist 中文件被添加所需的背景模式 - >应用程序注册位置更新

Yes, if CLLocationManager is first called startUpdatingLocation method, and in the AppName-Info.plist file is added Required Background Modes -> App registers for location updates

这篇关于应用程序处于后台状态时的CLLocationManager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆