[英]Updating locations while app in background working on simulator but not on device (iOS 9)
I have enabled Background Modes > Location updates
in my target's capabilites. 我已在目标的功能中启用了
Background Modes > Location updates
。 I run the app in an iOS 9
simulator, I put the app in background state with Location > City run
in the simulator, and it seems to keep getting location updates. 我在
iOS 9
模拟器中运行应用程序,我将应用程序置于背景状态, Location > City run
在模拟器中Location > City run
,它似乎不断获取位置更新。 But I run the app in a real iOS 9
device and few seconds after going to background, I loose the location services arrow in the status bar and no location updates are received. 但是我在真正的
iOS 9
设备中运行应用程序,在转到后台几秒后,我松开了状态栏中的位置服务箭头,并且没有收到位置更新。
On the other hand, I've run the app in a real iOS 8
device and it seems to keep listening for locations (the arrow in the status bar does not disappear). 另一方面,我在真正的
iOS 8
设备上运行应用程序,它似乎一直在监听位置(状态栏中的箭头不会消失)。
Why are location services stopping in background in an iOS 9
real iPhone
? 为什么位置服务在
iOS 9
真正的iPhone
停留在后台?
I need help to solve this, thanks in advance. 我需要帮助解决这个问题,提前谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.