即使在iOS 11中调用了stopupdating,bluebar也将永远保留 [英] bluebar stays forever even if stopupdating is called in iOS 11

查看:191
本文介绍了即使在iOS 11中调用了stopupdating,bluebar也将永远保留的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我始终以始终"方式访问位置服务,我知道Apple在iOS 11中所做的所有更改.我根据需要更新了plist(添加了新密钥).一旦应用程序进入后台,我就会立即调用stopUpdatingLocation,但是蓝色仍然停留在该位置,表示您的应用程序正在后台使用位置.状态栏中该已填充位置图标的顶部也会更改为轮廓位置图标.我也在使用Mapbox SDK.这是iOS 11的错误还是我遗漏了一些东西?仅提供背景信息,我完全知道定位服务的工作原理.我尝试了几乎所有解决方案来删除该蓝色条,但似乎并没有发生.

I am accessing location services as 'always', i know all the changes made by apple in iOS 11. i updated my plist as required( added new key). I calling stopUpdatingLocation as soon as application goes to the background, but this blue still stays there saying your application is using location in the background. Top of that filled location icon in status bar changes to outlined location icon also. I am using Mapbox SDK as well. Is it a bug with iOS 11 or am i missing something? Just to give background information, i am fully aware how location services works. i tried almost all solutions to remove that blue bar, but it seems it is not happening.

我尝试了self.locationManager.allowsBackgroundLocationUpdates = falseself.locationManager = nilself.locationManager.delegate = nil,但没有任何帮助.

I tried self.locationManager.allowsBackgroundLocationUpdates = false, self.locationManager = nil, self.locationManager.delegate = nil but nothing is helping.

如果有人可以帮助我,那将是很棒的.

It will be great if anyone can help me with this.

推荐答案

iOS 11 Beta 5已删除了不必要的,带有干扰性的蓝色横幅,该横幅为使用iPhone的位置的应用程序显示.通过属性将显示用于背景位置使用的蓝色条留给应用程序开发人员.

iOS 11 Beta release 5 has removed the unnecessary and intrusive Blue banner that displays for apps that used the location of the iPhone. Displaying the Blue bar for background location use is left to the app developer through a property.

@property(assign, nonatomic) BOOL showsBackgroundLocationIndicator

具有位置功能的应用程序的用户会在安装应用程序时首先被提示允许位置权限,然后定期提示您连续在后台使用位置信息的应用程序.具有三种不同阴影的位置使用指示箭头是用户知道位置服务是否正在使用的另一种机制.因此,始终出现的蓝色横幅是不必要的,Apple已经意识到了.

The users of the apps with location features are prompted to allow location permission first at the time of installing an app and then periodically prompted for apps that use location in the background continuously. The location use indicator arrow with three different shades is another mechanism for users to know if the location service is in use. Therefore an always appearing blue banner is unnecessary and Apple has recognized it.

这篇关于即使在iOS 11中调用了stopupdating,bluebar也将永远保留的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆