Can I keep my WatchKit App running in the background on the Apple Watch?

被刻印的时光 ゝ 提交于 2019-12-30 10:02:05

问题


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?

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?


回答1:


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.".

You can refer apple document Link to Apple Doc

Read Communicating Directly with Your Containing iOS App.



来源:https://stackoverflow.com/questions/32792260/can-i-keep-my-watchkit-app-running-in-the-background-on-the-apple-watch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!