简体   繁体   English

iOS的后台位置更新始终显示GPS图标

[英]Background location updates for iOS display GPS icon the entire time

My app runs significant location change updates in the background. 我的应用程序在后台运行重要的位置更改更新。 However the GPS display icon never turns off..even when app is in the background. 但是,即使当应用程序在后台时,GPS显示图标也不会关闭。 Is there a way to use location manager with Significant location change in the background and have the GPS icon NOT display continuously? 是否可以使用位置管理器在后台进行重大位置更改,并且GPS图标不能连续显示? My users don't understand that it is only periodically obtaining location coordinates and instead think its constantly running in background and thus deleting app thinking its too power intensive. 我的用户不了解它只是定期获取位置坐标,而是认为它在后台不断运行,因此删除了应用程序,因为它过于耗电。 Please help. 请帮忙。

I believe that any use of CoreLocation will prompt the location arrow. 我相信对CoreLocation的任何使用都会提示位置箭头。 That includes any of the geofencing CLRegion use, -startMonitoringForSignificantLocationChanges, and -startMonitoringForLocation. 其中包括地理围栏CLRegion的使用,-startMonitoringForSignificantLocationChanges和-startMonitoringForLocation。 I think that is Apple's safeguard that something is using your GPS, even in limited use. 我认为这是Apple的保护措施,即使在有限的使用情况下,某些东西也在使用您的GPS。

That arrow will be visible till you unregister your application from significant change. 在您从重大更改中取消注册应用程序之前,该箭头将一直可见。 But I faced problem, what I can't fine point where I can do this. 但是我遇到了问题,我无法在哪里做到这一点。 In my case will be best to unregister on application kill, but with multitasking there is no such ability to handle this moment to unregister. 就我而言,最好是在应用程序终止时注销,但是使用多任务处理时,就没有这种能力来处理此刻的注销。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM