我可以让我的WatchKit App在Apple Watch的后台运行吗? [英] Can I keep my WatchKit App running in the background on the Apple Watch?

查看:362
本文介绍了我可以让我的WatchKit App在Apple Watch的后台运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方式让我的WatchKit应用程序在后台运行,或者我是否可以在完成某个条件后将其编程为启动(即从非活动状态转换为活动状态)?

I want to know if there is anyway to keep my WatchKit app running in the background, or if I can possibly program it to launch (i.e. transfer from inactive state to active state) once a certain condition is fulfilled?

当WK应用程序处于打开和活动状态时,我的应用程序运行正常,当iPhone处于睡眠状态或父iOS应用程序处于BG模式时,它甚至可以正常运行。但是,我真的需要我的应用程序继续在手表背景上运行。这可能吗?

My app is running perfectly while the WK App is open and active, and it even runs fine when the iPhone is asleep, or when the parent iOS app is in BG mode. However, I really need my app to continue running in the background on the watch itself. Is this possible?

推荐答案

不可能。由于Apple Document for watchkit 明确提到 WatchKit扩展程序不支持后台执行模式,因此它们仅在用户与Apple Watch上的相应应用程序交互时运行。

Not possible. Because Apple Document for watchkit clearly mentions that "WatchKit extensions do not support background execution modes,they run only while the user is interacting with the corresponding app on Apple Watch.".

您可以参考苹果文档 Apple Doc的链接

阅读直接与您的iOS应用程序通信

这篇关于我可以让我的WatchKit App在Apple Watch的后台运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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