info-plist文件中没有所需的背景模式键 [英] Required Background modes key is not there in info-plist file

查看:289
本文介绍了info-plist文件中没有所需的背景模式键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置所需的背景模式键值,以便我的应用程序也可以在后台运行。实际上我想在应用程序处于后台时获取用户位置更新,但是在我的info-plist文件中没有称为所需背景模式键的键。如何设置此密钥并将其提交到我的文件中?

I want to set required background mode key value so that my app also works in background. Actually i want to get the user location updates when the app is in background, but there is no key called required background mode key in my info-plist file. How to set this key and jow to bring this in my file?

推荐答案

xcode 5 中,项目设置 - >目标 - >功能 - >后台模式 - >检查位置更新。

如果您使用以下而不是xcode 5 ,将位置的背景模式设置为以下屏幕截图。

If your are using below than xcode 5, set background mode for Location as below screen shot.

这篇关于info-plist文件中没有所需的背景模式键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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