简体   繁体   中英

What happens to a WatchKit app when iPhone is turned off?

Let's say I want to create a WatchKit app that shows the seconds for the current time.

What happens if iPhone gets turned off (eg battery drained), then user starts the app on the Watch device?

As far as I know, every (!) code runs on the iPhone (extension app), so my method that "fetches" seconds probably won't respond either. It is hard to imagine, but seems that I cannot get / display the current time on the Apple Watch if iPhone is turned off.

Any experiences on this?

Firstly, you can't do watch faces in the current developer kit.

All current WatchKit apps are extensions of iPhone or iPad apps. As you suggest, if the iOS device is not contactable, nothing will happen.

Apple say that native Watch apps will be coming later.

Your app will be killed immediately.

As you mentioned before, WatchKit Extension runs on iPhone, and you're absolutely right. There is only storyboard on Apple Watch.

So, the answer is very simple - "No code - no App"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM