gpt4 book ai didi

ios - Foursquare 始终跟踪地理定位(即使它已关闭)

转载 作者:行者123 更新时间:2023-11-29 03:07:35 26 4
gpt4 key购买 nike

Foursquare 始终跟踪地理定位(即使它已关闭)。

在图像上您可以看到它现在正在跟踪地理定位,但我将其关闭,所以当我双击主页按钮时我看不到 Foursquare 应用程序。

enter image description here

是不是iOS7的,是我iPhone的bug吗?

或者 Apple 是否为 Foursquare 提供了这些功能?

最佳答案

您可以在 Apple Location and Maps programming guide 中找到有关在后台使用位置的信息.尽管您的应用程序没有出现在应用程序切换器中,但它仍然可以接收通知——就像未“运行”的应用程序可以在锁定屏幕上显示通知或更新其图标角标(Badge)一样。

来自 Signficant Region Change Notification 的核心分配文档 -

If you start this service and your application is subsequently terminated, the system automatically relaunches the application into the background if a new event arrives. In such a case, the options dictionary passed to the locationManager:didUpdateLocations: method of your application delegate contains the key UIApplicationLaunchOptionsLocationKey to indicate that your application was launched because of a location event. Upon relaunch, you must still configure a location manager object and call this method to continue receiving location events. When you restart location services, the current event is delivered to your delegate immediately. In addition, the location property of your location manager object is populated with the most recent location object even before you start location services.

所以,仅仅因为你已经终止了应用程序并且它没有出现在应用程序切换器中并不意味着 iOS 无法重新启动它来处理通知然后再次关闭它

关于ios - Foursquare 始终跟踪地理定位(即使它已关闭),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22590738/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com