如何在停止位置更新后运行beginBackgroundTaskWithExpirationHandler?

时间:2021-06-23 20:42:07

I'm looking for a way to run beginBackgroundTaskWithExpirationHandler even location updates has been stoped. Is that possible? or i need to update anything?

我正在寻找一种方法来运行beginBackgroundTaskWithExpirationHandler甚至位置更新已被停止。那可能吗?或者我需要更新任何东西?

Note : i have noticed that beginBackgroundTaskWithExpirationHandler is calling until getting location updates.

注意:我注意到beginBackgroundTaskWithExpirationHandler正在调用,直到获取位置更新。

1 个解决方案

#1


0  

Once you're in the background you can only have 10 minutes of additional time. There is no way to extend that.

一旦你在后台,你只能有10分钟的额外时间。没有办法扩展它。

You should use the location background services instead.

您应该使用位置后台服务。

#1


0  

Once you're in the background you can only have 10 minutes of additional time. There is no way to extend that.

一旦你在后台,你只能有10分钟的额外时间。没有办法扩展它。

You should use the location background services instead.

您应该使用位置后台服务。