gpt4 book ai didi

ios - watch 套件 : handleWatchKitExtensionRequest stops working after x amount of time

转载 作者:行者123 更新时间:2023-11-29 12:23:16 25 4
gpt4 key购买 nike

我正在构建一个 watch 扩展程序,它使用 handleWatchKitExtensionRequest 让 iPhone 应用程序刷新其填充共享首选项(应用程序组)的数据。

因此,每次我加载该应用程序时,它都会在 iPhone 应用程序上调用 handleWatchKitExtensionRequest,并且在大约 15 分钟内一切正常,然后它就停止响应了?

watch 应用程序仍在运行,只是 iPhone 应用程序进入休眠状态?如果不要求 iPhone 做某事,那么 handleWatchKitExtensionRequest 有什么意义。

最佳答案

您是在后台任务中工作吗?查看此答案以获得一些解释:https://stackoverflow.com/a/29848521/3704092

关于ios - watch 套件 : handleWatchKitExtensionRequest stops working after x amount of time,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29944478/

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