如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?

如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?,第1张

概述如果用户在应用程序终止之前进入成功监控的区域,iOS区域监控是否会在后台启动我的应用程序? 我知道重要的更改API会这样做,并会在发布时通过包含UIApplicationLaunchOptionsLocationKey键让我知道.如果区域监控也会将我的应用程序从终止状态唤醒,那么启动过程是什么样的?我应该找一个特殊的钥匙吗? 是的,见 Region Monitoring In iOS, regio 如果用户在应用程序终止之前进入成功监控的区域,iOS区域监控是否会在后台启动我的应用程序?

我知道重要的更改API会这样做,并会在发布时通过包含UIApplicationLaunchOptionsLocationKey键让我知道.如果区域监控也会将我的应用程序从终止状态唤醒,那么启动过程是什么样的?我应该找一个特殊的钥匙吗?

解决方法 是的,见 Region Monitoring

In iOS,regions associated with your app are tracked at all times,including when your app is not running. If a region boundary is crossed while an app is not running,that app is @R_945_4404@ed into the background to handle the event. Similarly,if the app is suspended when the event occurs,it is woken up and given a short amount of time (around 10 seconds) to handle the event.

总结

以上是内存溢出为你收集整理的如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?全部内容,希望文章能够帮你解决如果我的应用处于终止状态,iOS区域监控是否会在我的应用上调用didEnterRegion?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1100717.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存