简体   繁体   中英

How display watchkit glance from iOS app

I have an iOS app with a corresponding WatchKit app. When I press a button in the iOS app, I want to launch the watch app glance screen and show a countdown timer.

Which method or techniques should I use. I have already setup the glance screen and glance schemes, but have no idea how to launch the glance.

You can't programmatically launch your glance (or watch app) from your iOS app.

The best you can do is send the application context to the watch, so that the glance or watch app would already have details about the countdown, if either were opened by the user.

You can find out more about this in WCSession Class Reference .

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