iOS 的后台位置更新始终显示 GPS 图标
我的应用程序在后台运行重要的位置更改更新。然而,即使应用程序在后台运行,GPS 显示图标也永远不会关闭。有没有办法在后台使用位置管理器并进行重大位置更改并且不连续显示 GPS 图标?我的用户不明白它只是定期获取位置坐标,而是认为它不断在后台运行,因此删除了应用程序,认为它太耗电了。请帮忙。
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. Is there a way to use location manager with Significant location change in the background and have the GPS icon NOT display continuously? 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信任何使用CoreLocation都会提示位置箭头。这包括任何地理围栏 CLRegion 使用、-startMonitoringForSignificantLocationChanges 和 -startMonitoringForLocation。我认为这是 Apple 的保护措施,防止某些东西使用你的 GPS,即使是在有限的使用情况下。
I believe that any use of CoreLocation will prompt the location arrow. That includes any of the geofencing CLRegion use, -startMonitoringForSignificantLocationChanges, and -startMonitoringForLocation. I think that is Apple's safeguard that something is using your GPS, even in limited use.
在您取消注册应用程序的重大更改之前,该箭头将一直可见。但我遇到了问题,我无法指出我可以在哪里做到这一点。就我而言,最好在应用程序终止时取消注册,但对于多任务处理,没有这样的能力来处理取消注册的时刻。
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.