Required Background modes key is not there in info-plist file

一世执手 提交于 2019-11-27 23:31:15

问题


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?


回答1:


In xcode 5, Project setting -> Target -> Capabilities -> Background modes -> check Location updates.

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




回答2:


You can add that key to the info.plist. If you are using Xcode 5 its very simple. In Capabilities just turn on the Background Modes




回答3:


In xcode5 , Select Your APP than enabled background modes and select location updates

Target > Capabilities



来源:https://stackoverflow.com/questions/21524421/required-background-modes-key-is-not-there-in-info-plist-file

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