开发者

Background location updates for iOS display GPS icon the entire time

开发者 https://www.devze.com 2023-03-29 05:56 出处:网络
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 Significa

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 constant开发者_高级运维ly 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. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消